Can not access a function in Magento? -
how can access function drawcustommenublock() in file
eternal\custommenu\eternal\custommenu\block\catalog\navigation.php, wants access these function in page app\design\frontend\zonda\default\template\page\html\header.phtml. if place these code in file
<?php echo $this->drawcustommenublock() ?>
then shows error :
exception printing disabled default security reasons.
how can solve ? please me out of this. new in magento.
thanks in advance.
inside phtml file, $this means instance of block.
example: page\html\header.phtml, $this instance of app/code/core/mage/page/block/html/header.php.
so create method called "drawcustommenublock" inside app/code/core/mage/page/block/html/header.php, call page\html\header.phtml.
try it.
Comments
Post a Comment