koda 发表于 2013-2-7 01:34:36

替代配置文件在代码中创建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]
查看完整版本: 替代配置文件在代码中创建Block