Question

I use Yii and I generated CRUD using Gii called for a Workers model. Somehow I dont have built in icons for default actions (view, update, delete) when browsing records using admin action (Manage Workers). I tought it was caused by the fact that the crud&model are in the module but no - for a test I made same model & crud in main directory - result is the same.

How is that possible? How can I make those icons show?

Was it helpful?

Solution

The columns of CGridView have to contain CButtonColumn:

'columns'=>array(
   array(
      'class'=>'CButtonColumn',
   ),
 )

But you are right, this should have been generated by Gii.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top