0

我想用红色做新的参考

我想在红色区域做一个新的参考,我已经添加了xml代码page.xml

<block type="core/text_list" name="newreference" as="newreference"/>

然后我把这个脚本放到2columns-left.phtml

<div><?php getChildHtml('newreference') ?></div>

然后我也把这个xml放入page.xml

<reference name="newreference">
  <block type="catalog/product_under_wasis" name="home.product.under_wasis" template="catalog/product/under_wasis.phtml" />
</reference>

然后我放入under_wasis.phtml文件夹catalog/product/,结果还是报错,can't read 'newreference'怎么办?

4

1 回答 1

1

你的getChildHtml()电话不正确。

它应该是:

<?php echo $this->getChildHtml('newreference') ?>
于 2012-07-27T09:46:57.823 回答