質問

afterRender() controller method invokes after render(), but not afterrenderPartial().

Is there a solution?

役に立ちましたか?

解決

After calling renderPartial, save return result and call afterRender this way:

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

他のヒント

If you need to do it regularly, override renderPartial in a CController class and call afterRender in there.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top