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 - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

ios - I get the error Property '...' not found on object of type '...' -