payu2107 / zii

Automatically exported from code.google.com/p/zii
0 stars 0 forks source link

In `CDetailView` incorrectly assigned the CSS class (even, odd) #35

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In `CDetailView` incorrectly assigned the CSS class to row in table (even,
odd)`itemCssClass` if pass attributes as follows:
'type' => array ('name' => 'type_id', 'type' => 'text', 'value' =>
$model->type->name,)

This is due to the fact that the render table used by the numerical keys of
an array of attributes.

Original issue reported on code.google.com by nikel...@gmail.com on 17 Mar 2010 at 10:14

GoogleCodeExporter commented 8 years ago
one of the variant to avoid this, you can assign an array of attribute options, 
keyless

Original comment by nikel...@gmail.com on 17 Mar 2010 at 10:37