sorry
if ( $this->form->isValid() ){
$this->redirect( '@home' );
}
is right condition to redirect
On Apr 22, 8:45 pm, Poltasi Risom <[email protected]> wrote:
> Why, why do you need redirect from component to another page?
> User requests are directed to actions, not to the components
>
> for instance
> modules/user/actions/components.class.php
> ...
> public function executeShowLoginForm(){
> $this->loginForm = new SigninForm();}
>
> modules/user/actions/actions.class.php
> ...
> public function executeSignin( sfWebRequest $request ){
> $this->form = new SigninForm();
> if ( $request->isMethod( 'post' ) ){
> $this->form->bind( $request->getParameter( 'login' ) );
> if ( !$this->form->isValid() ){
> $this->redirect( '@home' );
> }
> }
>
> }
>
> On Apr 22, 8:00 pm, Javier Garcia <[email protected]> wrote:
>
>
>
>
>
> > On Apr 21, 7:11 pm, gopi <[email protected]> wrote:
>
> > > thx for the clarification. I just tried using form in a component and
> > > it works.
>
> > I did also that, but... how do you redirect to another page using
> > components????
>
> > You know after the logging you have to redirect the user to the
> > "Profile" page for example..
>
> > Javi
>
> > --
> > 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
> > athttp://groups.google.com/group/symfony-users?hl=en
>
> --
> 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
> athttp://groups.google.com/group/symfony-users?hl=en
--
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