Post process output with CFilter->postFilter

Hi all!

I have a problem where I want to post process the output of an actions render() method.

I thought about making a filter inherited from the CFilter class, overriding the postFilter() method.

The question is: How do I get the rendered output from within postFilter()?

I have searched the web, have read the class documentation, searched the forums and studied the Yii sourcecode. Coultn’t find anything.

So if someone has experience with this I would like some help.

Thanx!

CControler::render() has a third parameter that if set to true returns the rendering result instead of displaying it - http://www.yiiframework.com/doc/api/CController#render-detail