Link In Cgrid View Problem

regards

i need to put a link in my cgrid view

my code is :




array(

'name' => 'studentID',

'header' => 'Student Name',    


'value'=>'CHtml::link(\'CHtml::encode(Student::model()->findByAttributes(array(\'Student_Number\'=>$data->studentID))->E_Child_Name) . " " . CHtml::encode(Student::model()->findByAttributes(array(\'Student_Number\'=>$data->studentID))->E_Family_Name)\', array(\'view\',\'id\'=>$data->studentID))',


'type'=>'raw',

		),



i got this problem:

Parse error: syntax error, unexpected ‘Student_Number’ (T_STRING) in C:\xampp\htdocs\yii\framework\base\CComponent.php(606) : eval()'d code on line 1

why?

I’d suggest to put more complex data column logic render to a model, for example. Possible approaches are described at this wiki article.