heres my controller:

public function executeUpdate()
  {
    if ( !$this->getRequestParameter( 'uname' ) )
    {
        $users = new Users();
    }
    else
    {
        $users = UsersPeer::retrieveByPk( $this->getRequestParameter(
'uname' ) );
        $this->forward404Unless( $users );
    }

    $users->setUsername($this->getRequestParameter('username'));
    $users->setPassword($this->getRequestParameter('password'));

    $users->save();

    var_dump($users);
    die();

    return $this->redirect('users/show?username='.$users->getUsername());
  }

i have a table users (primary key = username field)

$this->getRequestParameter('uname ') is a hidden input tag which holds the
original value of the username, the getRequestParameter('username') is the
changed one...

my problem is i can't save the new username that i entered. can someone help
me pls?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to