Hello,
In following code i am trying set an expression for rowCssClassExpression:
but get error:
What's the correct syntax for rowCssClassExpression?
In following code i am trying set an expression for rowCssClassExpression:
$this->widget('zii.widgets.grid.CGridView',array(
'dataProvider'=>$model->search(),
'filter'=>$model,
'rowCssClassExpression'=>' if($data->type == 1) return "deleted-row" ',
. . .
. . .
. . .
but get error:
Parse error: syntax error, unexpected T_IF in C:\Apache2\htdocs\yii\framework\base\CComponent.php(607) : eval()'d code on line [i]1[/i]
What's the correct syntax for rowCssClassExpression?