Thursday, April 19, 2012

Query produced by $this->User->save($this->data); gives error

Hello all ,

          During registration i have email id, user name , password, confirm password in view , all of them are compulsory.
but in database other fields like createdBy , newsletter etc are there. When i save form using $this->User->save($this->data);
 it generates query for only email id, user name , password ( confirm password match validation working fine) .

How can i add values to createdBy , newsletter etc. fields? so that insert query will work for all the fields in table.


Thanks in advance,
Mangesh Sathe


--
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: