sanfisa Posted March 15, 2014 Share Posted March 15, 2014 Hello, until now, I was using my js script within my view page for testing. Now, as suggested in the Yii Book, I'd like to use registeriing script. I use the command at the end of my view <?php Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl.'/js/comment.js', CClientScript::POS_END); ?> then, I got the syntax error Syntax Error: Unrecognized expression. Do you know where is my mistake ? Thank you in advance for your help Link to comment Share on other sites More sharing options...
Edward Posted March 16, 2014 Share Posted March 16, 2014 Can you show us the view file. Usually if there is a Javascript error it doesn't up in Yii. I am guessing there must be a mistake somewhere in the view php file as i have the same registerScriptFile methods but without any problems like that. Link to comment Share on other sites More sharing options...
Recommended Posts