Magento – getChildHtml inside of another .phtml file

layoutmagento-1.9theme

I have a local.xml file that I have all of my "includes" in (if you want to call them that).

I have a nav.phtml file that is included inside of the header.phtml file with getChildHtml('nav'). In nav.phtml, I have a file that I want included with getChildHtml('topSearch').

Is this possible? Is there a better implementation?

Best Answer

Fixed it by including this :)

<?php echo $this->getLayout()->createBlock('core/template')->setTemplate('template/templateName.phtml')->toHtml(); ?>
Related Topic