Closed tonykor closed 2 years ago
@tonykor Your issue information is incomplete: the stack trace does not include the custom $expression that is parsed here, and that one most likely contains the problem. Can you provide a complete example?
Hi @marcovtwout the problem was due to this array in colums of CGridView widget
array(
'class'=>'CButtonColumn',
'template'=>'{update}{delete}',
'deleteButtonOptions'=>array('class'=>'deleteButton'),
'deleteButtonImageUrl'=>$this->themeBaseUrl."/gfx/delete.gif",
'updateButtonImageUrl'=>$this->themeBaseUrl."/gfx/edit.gif",
'updateButtonOptions'=>array('style'=>'margin: 0 15px;'),
'updateButtonUrl'=>'CHtml::normalizeUrl(array("users/edit", id=>$data->id))',
'viewButtonImageUrl'=>$this->themeBaseUrl."/gfx/view.gif",
),
I have changed
'updateButtonUrl'=>'CHtml::normalizeUrl(array("users/edit", id=>$data->id))',
to
'updateButtonUrl'=>'CHtml::normalizeUrl(array("users/edit", "id"=>$data->id))',
it was my error sorry.
Changing yii/framework/base/CComponent.php(614) to
return @eval('return ' . $_expression_ . ';');
fixes the problem
Additional info