sanfisa 0 Posted March 15, 2014 Report 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 Quote Link to post Share on other sites
Edward 108 Posted March 16, 2014 Report 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.