替代配置文件在代码中创建Block
$this->getLayout()->getBlock('content')->append( $this->getLayout()->createBlock('catalogue/point_confirmation', 'point.confirmation'));如果使用setChild而不是append,代码如下:
$this->getLayout()->getBlock('content')->setChild('point.confirmation',$this->getLayout()->createBlock('catalogue/point_confirmation'));
页:
[1]