![]() |
Ajax and Controller - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Ajax and Controller (/showthread.php?tid=62660) |
Ajax and Controller - Angelo - 08-11-2015 Staff speaks okay, next have a ajax and he calls the controller but it does not receive POST, see the codes below: Ajax Code: function sendFile(file){ Controller PHP Code: public function summernote(){ Route PHP Code: $route['upload/summernote'] = 'uploads/summernote'; Result of print_r Array() what I'm doing wrong to the controller does not receive the post of ajax ? Thank you RE: Ajax and Controller - Ridd - 08-13-2015 url should be full and don't use print_r , just echo, for example : Code: $.ajax({ Code: public function summernote(){ |