link to the controller

This is the link to the controller that is not working, it should run actionView function:

echo CHtml::link($var,array(‘project/view’,‘id’=>$arr[$x][‘id’]));

and then jump to view but it directly jumps to view and gives error.

Hi,

Did u check what url has generated from yii using this code