zii.widgets.grid.CGridView many-to-many show

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(














but it not works.

Help my please. Maybe is some tutorial about relations in Yii?




Mayby I stupid but I still don’t know how do it. :(

yii manual is more … more see

but don’t tell what why when

when i read it i think what hell on it

it model / field name / variable

why don’t create full detail manual

or make full cms for example

Another wiki article about that: Displaying, sorting and filtering HasMany & ManyMany relations in CGridView