I am using the code to try to display some data referenced in a model with a foreign key ($model has a one to many foreign key to "referencedTable" data).
$this->widget('bootstrap.widgets.TbListView',array( 'dataProvider'=> $model->referencedTable, 'itemView'=>'_someview', ) );
The problem is with the data provider and I have a clue why, but I don't know what is the yii way to approach this.
The current error is:
- Fatal error: Call to a member function getData() on a non-object in
- framework/zii/widgets/CBaseListView.php on line 108