CGridView中的错误Yii,我需要做什么,解决了什么:
Parse error: syntax error, unexpected T_STRING in Z:\home\kaskad\www\framework\base\CComponent.php(612) : eval()'d code on line 1
'date'=>array(
'value' => $this->rus_date("j F Y H:i ", $data->date),
),
答案 0 :(得分:1)
您可以使用$this->grid->controller
:
'date'=>array(
'value' => '$this->grid->controller->rus_date("j F Y H:i ", $data->date)',
),