Therefore I wrote this code:
$this->widget('zii.widgets.grid.CGridView', array( 'dataProvider'=>$dataProvider, 'columns'=>array( array( 'value'=>array($this, 'renderPartial("_lineProblems")') ))));
But I get this error:
BookController and its behaviors do not have a method or closure named "renderPartial('_lineProblems' )".
The stack trace shows this as the problem:
call_user_func_array(array(BookController, "renderPartial('_lineProblems' )"), array("data" => line, "row" => 0, 0 => CDataColumn))
I don't understand the error. $this is an instance of BookController and BookController is a child of CController. CController has the methode renderPartial, so $this also has this method. How do I fix this?