Hi All!
I’m a beginner and need help in simple, I hope things.
I have ‘book’ and ‘author’ tables and many-to-many relationship between them (‘book_has_author’ table).
In authors/admin action I want see column which book’s title for any authors.
A have:
$this->widget('zii.widgets.grid.CGridView', array(
'id'=>'author-grid',
'dataProvider'=>$model->search(),
'filter'=>$model,
'columns'=>array(
'id',
'name',
'second_name',
array(
'class'=>'CButtonColumn',
),
'books.title',
),
))
but it not works.
Help my please. Maybe is some tutorial about relations in Yii?