在上面的代码中,放置“as =”footer_links“是什么意思?
解决方法
as =“x”语法定义模板可用于调用块的名称.因此,对于以下内容:
<block type="text/html" name="outer_block" as="outer_block" template="outer_block.phtml"> <block type="text/html" name="inner_block" as="inner_block" template="inner_block.phtml"> </block>
在outer_block.phtml中,您可以调用它来渲染inner_block.phtml:
<?PHP print $this->getChildHtml("inner_block"); ?>
希望有所帮助!
谢谢,乔