Hi everyone,
I need help with my js file. I use js file from another not Yii project and it uses api_url to handle some script in php. What I need is to change this script (some php file) to controller action. How can i do this ?
Function in js looks like
set_api_url: function(url) {
// set location of upload API script
this.api_url = url;
},
and i uses it by
xxx.set_api_url( 'test.php' );
but i want something like
xxx.set_api_url( 'controller/action' );
Thanks for any advice.