Cakephp 1.3 controller save() does not save data

Posted by Thijs on Stack Overflow See other posts from Stack Overflow or by Thijs
Published on 2010-05-19T14:00:52Z Indexed on 2010/05/21 20:20 UTC
Read the original article Hit count: 412

Filed under:
|
|
|

Hi all,

I want to add a new user to the database, and do so by making them fill in a form and submitting this. All seems to work fine. Just before my save() call in the controller I return all data and all necessary data is there. It is valid(ated), since no errors are returned.

But then nothing happens. I'm being returned to my form without any errors being shown. This is my 'save-line':

if($this->Registratie->save($this->data)) {

I'm not making use of any beforeSave() methods.

Using debug($this->validationErrors); shows:

app/controllers/registratie_controller.php (line 45)

Which is the line of code from above.

I've been going through my code over and over, but I'm clueless as to what the problem could be. Any help is greatly appreciated!

Thanks in advance!

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about controller