I am trying to insert a link in a column of a cgridview. This link will lead to another cgridview based on an attribute value of the row in the 1st cgridview. I am having a parse error with a particular CHtml::link
Here’s is the code:
<?php $dataProvider=new CActiveDataProvider('Department'); ?>
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'department-grid',
//'dataProvider'=>$dataProvider,
'dataProvider'=>$model->search(),
'columns'=>array(
'id',
'name',
array('name'=>'empname', 'type'=>'raw', 'value'=>'CHtml::link('Eyees', $this->createUrl('employee/admin'),array('id'=>'$data->id'))'),
array(
'class'=>'CButtonColumn',
),
),
)); ?>
Am I missing something? I’ve edited several times but without success (