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

    技术2022-05-19  21

    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 ?>

    最新回复(0)