Ajax Url In Js External File By Yii

Hi everyone!

I am new to start yii and now i got stuck in ajax

          [i] [b] $.ajax({


		url:&lt;&lt;&lt;&lt;<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/huh.gif' class='bbc_emoticon' alt='???' />?&gt;&gt;&gt;&gt;,






How can i put my php like <<<<data/action.php>>>> file in this style. As i’ve tried, it’s not working

Could any guide me to do this. Thank in advance!

You do not need the .php following your action, that might be the problem, if you can use php use CController::createUrl(‘controller/action’), otherwise just try using ‘/controller/action’

The simple and usual Yii approach is to use CClientScript.registerScript()

Also you may write URL manually or pass it as js constant, but these are worse solutions IMO.

And write what exactly you entered as the URL in your script.