5
布局更新:无法通过引用在布局XML中添加子块
我遇到了似乎无法在布局XML文件中添加子块的问题。mylayout.xml无法加载,这是我做错了abc什么?我有以下文件。 onestepcheckout.xml <onestepcheckout_index_index> ... <reference name="content"> <block type="onestepcheckout/checkout" name="onestepcheckout.checkout" template="onestepcheckout/checkout.phtml"> ... <!-- this child block can be loaded --> <block type="block/class" template="path/to/template/template.phtml" name="qwe" as="qwe" /> ... </block> </reference> ... </onestepcheckout_index_index> mylayout.xml <onestepcheckout_index_index> <reference name="onestepcheckout.checkout"> <!-- this child block can not be loaded --> <block type="block/class" template="path/to/template/template.phtml" name="abc" as="abc" /> </reference> …