简体   繁体   中英

Default icons in CButtonColumn not showing

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM