Hey I have an ajax call which currently calls a php file with queries inside it. I am moving it to controllers and models. How can I call a controller action using ajax.
My Ajax call is
$.ajax({
type: "POST",
url: "/logs/opening_log.php",
data: dataString,
cache: false
});
What should I put in url if I have to call the box_openings_log action of openings_log controller.
Thanks
1 Answer