Htmlspecialchars() Expects Parameter 1 To Be String, Array Given

hello everyone i have a same problem with htmlspecialchar() i don’t know wat to do plz help me to solve this problem, I m new to yii.


method accepts label as the first parameter and then url as the second parameter. here you are sending url array as first paramet. so send url array as second para, like this

echo CHtml::link('sample link',array('view','foo'=>bar'));