關於得到子!!childhtml 關於------- magento getChildHtml() 與getChildChildHtml()

1
getChildHtml('a')
加載as=‘a’的block
2
getChildHtml('');
加載所有的子block
3
getChildChildHtml ( 'container1'  'b'  true  true 
加載子block container1以及他的子block(as=‘b’);
4
getChildChildHtml ( 'container1'  ''  true  true )
加載子block container1,以及下面的所有子block。。。!!!

OK!!!!




<?php  echo  $this -> getChildChildHtml ( 'container1'  ''  true  true  ?>
 <?php 
 echo  $this -> getChildChildHtml ( 'container2'  ''  true  true  ?>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章