Can I render to variable instead of to output?

Is it possible to do something like this:




//saving rendered output in a variable

$list = $this->renderPartial('list', array('data');

echo $list;



there is a third parameter which can handle it, set it to true

http://www.yiiframework.com/doc/api/1.0.11/CController#renderPartial-detail

Thank you so much. Don’t know how I missed that.