Default icons in CButtonColumn not showing

306 Views Asked by At

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?

1

There are 1 best solutions below

3
Kai On BEST ANSWER

The columns of CGridView have to contain CButtonColumn:

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

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