我想知道为什么这里给出的方法https://magento.stackexchange.com/a/3471不适用于xml块<reference name="before_body_end"/>
?
我知道before_body_end的块类型是core / text_list但是Mage_Core_Block_Text仍然继承了具有append方法的Mage_Core_Block_Abstract,所以我对Magento的理解是它应该可以工作,但我显然在这里遗漏了什么?
修改 这是一个尝试的例子:
<block type="core/template" name="myblock" template="path/to/myblock.phtml" />
<reference name="before_body_end">
<action method="append" ifconfig="mymodule/settings/enabled">
<block>myblock</block>
</action>
</reference>