php - How to acces one .phtml file in another .phtml file magento? -


in magento development how access 1 ".phtml" file in 1 or more other ".phtml" files?

for example:

in theme template folder there 1 folder info. contains info.phtml.this info.phtml display data database.i want use info.phtml in other .phtml files using getchildhtml() how this?

try code in phtml file call phtml file

<?php      echo $this->getlayout()->createblock('core/template')->settemplate('test/test.phtml')->tohtml();      ?> 

Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -