Jump to content
Larry Ullman's Book Forums

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


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 post
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 post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...