sorry, this part $this->processForm($request, $this->form); and this part
$this->getUser()->signIn($this->form->getObject()); is not in the code. Thanks again On Dec 10, 6:10 pm, el-sid <[email protected]> wrote: > ok....am really at my wits end here. can anyone please show me whats > going on here. > I modified my code to look like so > > $response = $this->getResponse()->addStyleSheet('template/2col.css'); > > $this->form = new RegisterForm(); > > if ($request->isMethod('post')) > { > > $this->processForm($request, $this->form); > > $this->form->bind($request- > > >getParameter('sf_guard_user')); > > if ($this->form->isValid()) > { > > $this->form->save(); > > // $this->getUser()->signIn($this->form->getObject()); > $this->redirect('@homepage'); > } > } > > However, all it does is give me a blank screen and does not redirect > as it is supposed to. > In my debug toolbar, it shows the modified response values. My problem > is nothing gets saved in the > database, and no error indicating why. > > Any help? thanks > > On Dec 6, 9:42 am, el-sid <[email protected]> wrote: > > > > > > > > > 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()->getGua > > rdUser()->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
