Call controller function outer folder |
Hi friends I have a controller inside a folder but I can't call a function from a controller in a parent folder using AJAX.
(codeigniter 3.0.0) application ----controllers c_main.php cf_folder -------c_inner_ctrl.php ----views ----my_view.php public ----js ----jslogic.js So c_inner_ctrl loads the view called my_view ($this->load->view->('my_view')) The view (my_view) imports a javascript file called jslogic.js is this JS file there is a function that calls a function from c_inner_ctrl.php and it works fine. NOW! if from this very JS file I want to call a function in c_main.php I get the error in google chrome's console POST http://localhost/my_project/cf_folder/c_main 404 (Not Found) This means that I am not able to call a CONTROLLER function from another view which its controllers is in another folder Here is the js function (this one works) Code: function probar() { Code: function probar() { |
Messages In This Thread |
Call controller function outer folder - by slipdiegoknot - 02-03-2016, 03:10 PM
RE: Call controller function outer folder - by ciadmin - 02-03-2016, 05:23 PM
RE: Call controller function outer folder - by slipdiegoknot - 02-04-2016, 02:53 PM
RE: Call controller function outer folder - by slipdiegoknot - 02-05-2016, 08:46 AM
RE: Call controller function outer folder - by keulu - 02-05-2016, 08:58 AM
|