Tuesday, September 8, 2015

Magento : call block function in another phtml file

$className = Mage::getConfig()->getBlockClassName('Companyname_Modulename_Block_Filename');

$blockObject = new $className();  

$blockData = $blockObject->functionName();

1 comment:

Fatal error: Class Zend\Stdlib\Parameters contains 1 abstract method... magento 2

Fatal error: Class Zend\Stdlib\Parameters contains 1 abstract method and must therefore be declared abstract or implement the remaining met...