Jump to content
Larry Ullman's Book Forums

Syntax Error Unrecognized Expression: #comment<?php Echo $Data['id'


sanfisa
 Share

Recommended Posts

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

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

 Share

×
×
  • Create New...