I notice you have url: Users/add, in your ajax function. So I saw that the request->data is filled with my parameters when I did not set the content-type but when I set it with application/json, because I. There are a few things you can do here for debugging: 1 - First, make sure that your requests are reaching the right controller function. Error: Call to a member function disable() on a non-objectįile: /home/voyou/subdomains/labsurface/app/Controller/EmploisController.phpĪnd here's the controller : /app/Controller/EmploisController. I work with cakePhp for a couple of month and so far I have no problem, but today I tried to send some data from my android application and its not working. And IMO without at least some basic knowledge it is often very difficult using specific plugin solutions.
We mainly recreate what existed from an other models / controller already working inside the website but currently we get this error and we can't figure the problem. It is not always easy to know how much can be expected and it feels like just repeating the CakePHP docs which already exist for that reason. We tried to create a new functionality "Emplois" to add jobs inside the website. Provides basic functionality, such as rendering views inside layouts, automatic model. These are public methods on a controller that are not inherited from. Controllers should provide a number of 'action' methods. Provides basic functionality, such as rendering views inside layouts, automatic model availability, redirection, callbacks, and more.
#Cakephp autorender false not working update#
Because we’re using AJAX to update the page, we don’t need CakePHP to keep reloading and rendering the page. Application controller class for organization of business logic. Application controller class for organization of business logic. Never use cakephp before and we have a project to edit for our client made in cakephp 2.5. this->autoRender false This line tells CakePHP not to render the page after we finish working our magic.