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?

有帮助吗?

解决方案

The columns of CGridView have to contain CButtonColumn:

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

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top