myUrl = 'controllername/' + myAction
<?php echo CHtml::ajax(array(
The problem is using myUrl in CHtml::ajax.
‘url’=>array(“js:myUrl”) does not work.
Recently I had the same challenge and I found out that I had to include the path to my application. So it should look something like this:
url = '/appname/index.php/controller/action'
Hope that helps!
Thanx for the reply.
I got the Create action working (obviously, because that is the wiki).
Now I want to use the same functionality for the CGridView’s ‘update’ buttons.
I belief, this approach boils down to the same thing you are saying.