Yii CGridView add custom button

Comparing #2 with #3

Revision #3 was created by Arockia Johnson SR Arockia Johnson SR on Mar 14, 2014, 12:07:57 PM.

button array link added

Content

[...]
'url' => 'CHtml::normalizeUrl(array("dashboard/mail/id/".rawurlencode($data->feedback_email)."/f_id/".$data->feedback_id))', //Your URL According to your wish
'imageUrl' => Yii::app()->baseUrl . '/images/reply_mail_icon.png', // image URL of the button. If not set or false, a text link is used, The image must be 16X16 pixels
),
),
```

 
 
For more field definitions of buttons array check  [CButtonColumn](http://www.yiiframework.com/doc/api/1.1/CButtonColumn#buttons-detail "CButtonColumn")