Monday, March 12, 2012

Yii CGridView hide the delete button


php $this->widget('zii.widgets.grid.CGridView', array(
        'id'=>'some-grid',
        'dataProvider'=>$model->search(),
        'filter'=>$model,
        'columns'=>array(
        'id',
        'name',
        'etc',
        array(
         'class'=>'CButtonColumn',
         'template' => '{view} {update}',
        ),
)); ?>

2 comments:

About

Blogger templates