Magento XML布局

在上面的代码中,放置“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"); ?>

希望有所帮助!

谢谢,乔

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念