Custom MyGridView Cbutton

$this->widget('MyGridView', array(
		'id' => 'mymodel-grid',
		'dataProvider' => $model->search(),
		'filter' => $model,
		'columns' => array(
				//         'id',
				'value',
				array(
						'class' => 'CButtonColumn',
						'template'=>'{update}',
						'buttons'=>array
						(
								'update' => array
								(
										'url'=>'Yii::app()->createUrl("mymodel/action", array("id"=>$data->id))',
								),
						)
				),
		),
));

Les commentaires sont fermés.