In 99,7% of the cases, a redirect is what you want to do. The sample
app redirects back to the original page after a login, you can look
at that to learn how it's supposed to be done.
Cheers,
David
Am 05.03.2007 um 12:53 schrieb Markus Lervik:
> surej ns wrote:
>> hi,
>> thanks Noah Fontes and Markus Lervik giving me the solution for parse
>> error..now I wanted to know how will we redirect to a new page.like
>> after login i wanted to redirect to a new page (adminHome.asp)how can
>> i do that.and what is the correct function .
>>
>> thax
>> surej
> Hi,
>
> You would do this in the view's execute method.
>
> If you want to redirect (send the user to an external page, that is --
> not an Agavi action)
> you use
> $this->container->getResponse()->setRedirect("http://host.com/
> foo.bar");
> and if you want to forward (send the user
> to another Agavi action) you use $this->createForwardContainer
> ('Module',
> 'Action');
>
>
> HTH,
> Markus
>
>
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.agavi.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users