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.
No comments:
Post a Comment