Calling a web widget in CGridView

Hi Everyone,

I would really like the CStarRating within a CGridView. So close but not getting a variable ($data->name) evaluated. It is beginning to make my eyes water… Could anyone please help?


 $this->widget('zii.widgets.grid.CGridView', array(














)); ?>

Try this



Thank you Tri!

I also needed to add the ID :


Thanks so much :)

You could also consider adding a formatter for this and define the star rating "formatting" in a similar way as I explain in this wiki article.