I went back, uncommented the code, and without much tinkering it
started to work. I think I rebaked a model yesterday, because I wan't
sure if the login model had the hasMany associations set. Anyway, it
looks like it's working at the moment!
Thanks a lot for your speedy replies, I appreciate it.
Cheers
On Feb 24, 10:42 am, WebbedIT <p...@webbedit.co.uk> wrote:
> @Nico: Slight correction to your suggested associations@
>
> var $belongsTo=array('Login');
> and the Login.php should have
> var $hasMany=array('User');
>
> Can you do an echo debug($this->data); in your controller to show the
> submitted data, and an echo debug($this->validationErrors); in your
> view and cut/paste the results to show us what your trying to save.
> The only reasons a save should fail is due to validation or any
> callbacks that are set to occurr before the save which are not
> returning true.
>
> HTH
>
> Paul.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment