Setting baseurl in cakephp

Posted by Aruna on Stack Overflow See other posts from Stack Overflow or by Aruna
Published on 2010-06-02T04:58:12Z Indexed on 2010/06/02 5:03 UTC
Read the original article Hit count: 186

Filed under:
|

Hi,

I am working on an appliication which is running in cakephp and i am using ajax query inbetween.

In all the cases for all the ajax post i have used the url as

       var ht = $.ajax({
                                  type: "GET",
   url: "http://172.20.52.99/FormBuilder/index.php/forms/viewChoices/"+attribute_id,
                                async: false
                        }).responseText;
                        var myObject = eval('(' + ht + ')');

 is there any way in cakephp where i can give my base url as http://172.20.52.99/FormBuilder/index.php/
  and to call the baseurl in all the places i want.

Please give some suggestions . Thank you..

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about baseurl