Difference between #4 and #5 of
Change buttons on our CGridView extending yii

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();
[...]
9 0
9 followers
Viewed: 36 342 times
Version: 1.1
Category: Tips
Written by: sensorario
Last updated by: sensorario
Created on: Dec 19, 2011
Last updated: 12 years ago
Update Article

Revisions

View all history