Revision #5 has been created by sensorario on Apr 24, 2012, 11:06:11 PM with the memo:
Fixed typo
« previous (#4)
Changes
Title
unchanged
Change buttons on our CGridView extending yii
Category
unchanged
Tips
Yii version
unchanged
Tags
unchanged
CGridView, CButtonColumn, extending
Content
changed
[...]
```php
class MyCButtonColumn extends CButtonColumn {
protected function checkButtons($data, $id) {
return !(date('Y-m-d') == '2012-12-21' && $id == 'delete'
);
}
protected function renderDataCellContent($row, $data) {
$tr = array();
ob_start();[...]