【发布时间】:2011-08-27 22:54:42
【问题描述】:
我试图找到解决方案,但没有结果。 我的任务是编写模块。它应该在现有块中插入一些 html。
我注意到当我使用布局 .xml 文件时,我可以将我的块插入到一些参考中,例如
<reference name="product.info">
<block type='googlethis/link' name="googlethis"
template="catalog/product/googlethis.phtml"/>
</reference>
我的块也显示了。
在其他情况下,我应该调用 getChildHtml() 方法,这不好,因为它会更改模板 .phtml 文件。
那么有没有办法在不调用getChildHtml() 的情况下将我的 phtml 块插入到 any 其他 phtml 块中?
【问题讨论】: