skip to Main Content

ajax request to a php MVC controller

In my MVC site I have a js script with an ajax request to a controller (getSinger) like this: xmlhttp.open("GET","http://localhost/project/home/getSinger/"+str,true); Is there a way to get the path before the controller name? In the php side I have a constant…

VIEW QUESTION
Back To Top
Search