Calling a controller in a subfolder from an ajax call - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Calling a controller in a subfolder from an ajax call (/showthread.php?tid=46468) |
Calling a controller in a subfolder from an ajax call - El Forum - 11-02-2011 [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 |