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

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: 54 912 times
Version: 1.1
Category: How-tos
Written by: Maug Lee
Last updated by: yugene
Created on: Jun 1, 2013
Last updated: 10 years ago
Update Article

Revisions

View all history