Welcome Guest, Not a member yet? Register   Sign In
Calling a controller in a subfolder from an ajax call
#1

[eluser]Cgull[/eluser]
Hello,

I have a site called: orders.

I have a sub folder in my controllers folder called: manage

In it I have a controller called: manageOrders

In the controller I have a function called: process.

In my views folder, I have a sub folder called: manage

In there I have a view called: manageOrders_view which has a form that triggers an ajax call on submit.

I have tried to call the manageOrders process function with the ajax call in different ways:

url: "/manage/manageOrders/process",
url: "/orders/index.php/manage/manageOrders/process",
url: "/orders/manage/manageOrders/process",
url: "manage/manageOrders/process",

All the calls, open this url: localhost/orders/manage/process

Which of course gives me the page not found error.

Why does it drop the controller's name: manageOrders?

How can I call a controller is a sub folder from ajax?

Thank you





Theme © iAndrew 2016 - Forum software by © MyBB