Difference between #2 and #3 of
CGridView. Add custom class to table rows preserving original „odd“ and „even“

Revision #3 has been created by yugene on Jul 1, 2014, 1:37:43 AM with the memo:

Yii version is set to 1.1
« previous (#2)

Changes

Title unchanged

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

CGridView, table, Widgets

Content unchanged

[...]
```php
( $data->status ? null : " disabled" )
```
$data here is User model and „status“ is its property (0 or 1 in this case). You can't access $model variable from those string expressions.

7 0
4 followers
Viewed: 53 828 times
Version: 1.1
Category: How-tos
Written by: Maug Lee
Last updated by: yugene
Created on: Jun 1, 2013
Last updated: 9 years ago
Update Article

Revisions

View all history