How to call function of another block Magento
magento
Solution
Hi you can do it by creating reference to that Block.Like
$cpBlock = $this->getLayout()->getBlockSingleton('your block class'); //ect Mage_Catalog_Block_Product_List_Toolbar
Than you can easily call every function of that class like `$cpBlock->getLinks();`.Other way is using XML block code.Add contact us xml reference just like user2338443 mentioned to your custom xml and than access functions of that block.
Problem
I am trying to change the reference block of contact us link..I created all the phtml file and all.. Now in Phtml file when i am calling ``` <?php $_links = $this->getLinks(); ?> ``` I am getting number of links as 0..because it cant get the object of links.php.. I want to know how can I have reference object of contacts.phtml