Sunday, March 4, 2012

Re: linked models and save

$dataUser should be something like this

$dataUser = array('User' => array('username' => $this->request-
>data('LOGINTUTOR'), 'password' => $this->request-
>data('PASSWORDTUTOR'), 'role' => 'tutor'));

and make sure that model is not validated before save, maybe here is problem too :) 
--
Lep pozdrav, Tilen Majerle



2012/3/4 Cédric Chabert <ced.chabert@gmail.com>
$dataUser = array('username' => $this->request-
>data('LOGINTUTOR'), 'password' => $this->request-
>data('PASSWORDTUTOR'), 'role' => 'tutor');

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
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

No comments: