Hi all,
I am trying to modify the registration process in
sfDoctrineGuardPlugin to allow for an edit feature in the frontend. So
i came up with this..
public function executeIndex(sfWebRequest $request)
{
$response = $this->getResponse()->addStyleSheet('template/
2col.css');
if ($request->isMethod('post'))
{
$this->form->bind($request-
>getParameter('sf_guard_user'));
if ($this->form->isValid())
{
$this->form->getObject()->save();
$this->redirect('@homepage');
}
}
}
public function executeEdit(sfWebRequest $request)
{
$response = $this->getResponse()->addStyleSheet('template/
2col.css');
$this->forward404Unless($user =
Doctrine_Core::getTable('sfGuardUser')->find(array($this->getUser()-
>getGuardUser()->getId())), sprintf('Object requisition does not exist
(%s).', $request->getParameter('id')));
$this->form = new RegisterForm($user);
}
problem is the form is neither saving nor validating.
any ideas?
thanks
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
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