关于得到子!!childhtml 关于------- magento getChildHtml() 与getChildChildHtml()

来源:互联网 发布:域名注册方法 编辑:程序博客网 时间:2024/05/22 09:41
1
getChildHtml('a')
加载as=‘a’的block
2
getChildHtml('');
加载所有的子block
3
getChildChildHtml('container1''b'truetrue
加载子blockcontainer1以及他的子block(as=‘b’);
4
getChildChildHtml('container1'''truetrue)
加载子blockcontainer1,以及下面的所有子block。。。!!!

OK!!!!




<?php echo $this->getChildChildHtml('container1'''truetrue?>
 <?php 
echo $this->getChildChildHtml('container2'''truetrue?>