Magento: contents of <?php echo $this->getChildHtml(&#


Magento: contents of <?php echo $this->getChildHtml('content') ?>

我一直在玩magento的PHP文件。然而,我似乎不知道被拉出来的是什么Out with

<?php echo $this->getChildHtml('content') ?>

和它的来源。例如,我可以看到一些文字说"主页",但我不能通过涉水穿过/app/design/frontend/base/default下的各种文件并且打开模板路径提示也没有帮助。

我正在运行的magento版本是1.7.0.2。

内容块是一个结构块,用于包装页面内容的所有块。getchildtml ('content')加载布局"content"中通过

添加的所有块
1. xml via <reference name="content"><block type="core/template') name="test" template="test.phtml"/>
2. code via $this->getLayout()->getBlock('content')->append($block);

调用'content'内部每个块的toHtml方法以返回其html