Wednesday, January 6, 2010

Re: save not updating values in Table

Hi!

Why did i get this e-mail? I didn't make this post.


Regards,


Robin

On wo, 2010-01-06 at 04:34 -0800, John Andersen wrote:
> Check spelling - is your model called UserProfile or UserProfiles?
> CakePHP standard is to use UserProfile - the singular name and the
> plural for the table.
> Enjoy,
> John
>
> On Jan 6, 11:51 am, Uresh <uresh.pa...@ifuturz.com> wrote:
> > /*
> > MY problem is that i fetch all the data to the form and i put all the fields
> > to appropriate textbox and so on....when i submit the form the value passes
> > properly but it is not updated in the database table.
> > ------------
> > Array
> > (
> > [UserProfiles] => Array
> > (
> > [userid] => 8
> > [firstname] => eee
> > [lastname] => eeee
> > [password] =>
> > [add1] => reeereeereee
> > [add2] => reeereeereeereee
> > [city] => ree
> > [state] => ree
> > [country] => ressss
> > [zip] => 323333
> > [phone] => 33333333
> > [email] => ddd...@ifuturz.com
> > )
> > )
> >
> > ------------
> > */
> > ///////////////////////VIEW EDIT PAGE ////////////http://old.nabble.com/file/p27026819/edit_details.ctpedit_details.ctp
> > ---------------------------------
> > /////////// models ///////////////
> >
> > class UserProfile extends AppModel
> > {
> > var $name='UserProfile';
> > var $primaryKey = 'userid';
> >
> > }
> >
> > class Admin extends AppModel
> > {
> > var $name='UserProfile';
> > var $primaryKey = 'userid';
> >
> > }
> >
> > ////////////////////////////////////http://old.nabble.com/file/p27026819/admin_controller.php
> > admin_controller.php
> > --
> > View this message in context:http://old.nabble.com/save-not-updating-values-in-Table-tp27026819p27...
> > Sent from the CakePHP mailing list archive at Nabble.com.
> 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: