2013-08-19 63 views

回答

1

調用的RenderPartial後,保存返回結果,並呼籲AfterRender階段是這樣的:

$view = 'myView'; // etc 
$output = $this->renderPartial($view, array(...)); 
$this->afterRender($view, $output); 
1

如果你需要經常做,在CController類中重寫renderPartial,並在那裏打電話afterRender