Simple Chtml::link Problem

Hi everyone,

I’m here for a stupid problem, but I still haven’t found how to solve it.

As you can see there is grid where I print my records.

The CHtml::link convert into url /project/index.php?r=people/view&id=241

Having & instead of & is the problem. How can we solve it?

Thanks a lot




$this->widget('zii.widgets.grid.CGridView', array(

    'dataProvider'=>$dataProvider,

	'columns'=>array(

		array(

			'name' => 'Nome',

			'value' => 'CHtml::link($data->name." ".$data->surname, array("view", "id"=>$data->id))'

			

			

		),

		'name',

		'surname',

		'sex',

	),    

));



Ok, solved.

Added option "type"




                array(

                        'name' => 'Nome',

                        'value' => 'CHtml::link($data->name." ".$data->surname, array("view", "id"=>$data->id))'

                        'type' => 'html'

                        

                ),









                array(

                        'name' => 'Nome',

                        'value' => 'CHtml::link($data->name." ".$data->surname, array("view", "id"=>$data->id))',

                        'type' => 'raw',

                ),



Edit:

Ninja’d.