I am changing in app/code/core/mage/page/block/html/Topmenu.php
in my magento but I cannot see result. but when i change in topmenu.phtml
file then it displays changes.
what is the issue? I am sure the Topmenu.php
is the block file but menu still display. I don't know how is it possible. I am also trying in Navigation.php
in Mage/catalog/block/navigation.php
. it's also now working. how is it possible?
Means when I change code in Topmenu.php
file's _gethtml()
function, for example I write echo "hello";
then doesn't show. But when I am changing in topmenu. phtml
file and write any code it displays in the navigation.
In header.phtml
I call top menu using
<
?php echo $this->getChildHtml('topMenu') ?>
topphml.phtml file code
<?php echo "hello"; ?>
<?php $_menu = $this->getHtml('level-top') ?>
<?php if($_menu): ?>
<div class="nav-container">
<ul id="nav">
<?php echo $_menu ?>
</ul>
</div>
<?php endif ?>