Php Magento-从一个布局文件调用另一个布局
在Magento上,如果我在PHTML文件上有类似的内容:Php Magento-从一个布局文件调用另一个布局,php,magento,Php,Magento,在Magento上,如果我在PHTML文件上有类似的内容: $this->getChildHtml('myblock'); 如何在不使用块的情况下设置布局样板文件?我想在PHTML内部使用“getChildHtml()”直接调用另一个PHTML文件 或者在块中放置什么来设置模板文件 <block type="module/some_path" name="some_path.something" template="xxx.phtml">
$this->getChildHtml('myblock');
如何在不使用块的情况下设置布局样板文件?我想在PHTML内部使用“getChildHtml()”直接调用另一个PHTML文件
或者在块中放置什么来设置模板文件
<block type="module/some_path" name="some_path.something" template="xxx.phtml">
<reference name="myblock">
<template>xxxx.phtml</template>
</reference>
</block>
xxxx.phtml
catalog/product/popular.phtml用于设置模块文件路径的位置
<?php echo $this->getLayout()->createBlock('core/template')->
setTemplate('catalog/product/popular.phtml')->toHtml(); ?>