in Zend Framework:
You have two options or more if you want to use action helpers
$this->_forward($action, $controller = null, $module = null, array $params =
null);
or
Proxies to
Zend_Controller_Action_Helper_Redirector::gotoUrl()$this->_redirect($url, array
$options = array());
Thanks
Mohammed
http://jamandcheese-on-phptoast.com/
> From: [email protected]
> To: [email protected]
> Subject: Re: [phpug] Speaking of factory factory factory
> Date: Thu, 4 Mar 2010 09:32:43 +1300
>
> Symfony version:
>
> $this->redirect('url');
>
> done...
>
> ---------------------------------------------------
> Craig Boxall
>
> [e] [email protected]
> [m] 021 564 522
> [p] 09 928 6040
> [w] www.pixelfusion.co.nz
>
>
>
>
> On 4/03/2010, at 9:30 AM, Richard Clark wrote:
>
> > You can get all of those without ending up with the mess the original
> > poster gave. Plenty of modern frameworks manage to make that stuff
> > simple, easy and elegant.
> >
> > On 3 March 2010 23:46, Jevon Wright <[email protected]> wrote:
> >> Except this way you get logging, debugging, and a host of other
> >> features :-)
> >>
> >> Just remember what things were like before PDO... or even PEAR.
> >>
> >> Jevon
> >>
> >> On Wed, Mar 3, 2010 at 11:35 PM, Richard Clark <[email protected]
> >> >
> >> wrote:
> >>>
> >>> People got more interested in classes and adapters and brokers and
> >>> swimming in a sea of abstract patterns than they did in producing
> >>> results. And we all lost out as a result.
> >>>
> >>> On 3 March 2010 23:27, Keith Allpress <[email protected]> wrote:
> >>>> I wanted to redirect to the current uri in a zend front controller
> >>>> plugin so
> >>>> I started typing
> >>>>
> >>>>
> >>>>
> >>>> $redirector =
> >>>> Zend_Controller_Action_HelperBroker::getStaticHelper('redirector');
> >>>>
> >>>> $redirector->gotoUrl($request->getRequestUri())->redirectAndExit();
> >>>>
> >>>>
> >>>>
> >>>> Then it struck me whatever happened to
> >>>>
> >>>>
> >>>>
> >>>> redirect($_SERVER["REQUEST_URI"]);
> >>>>
> >>>>
> >>>>
> >>>> Chuckles
> >>>>
> >>>>
> >>>>
> >>>> [email protected]
> >>>>
> >>>>
> >>>>
> >>>> --
> >>>> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> >>>> To post, send email to [email protected]
> >>>> To unsubscribe, send email to
> >>>> [email protected]
> >>>
> >>> --
> >>> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> >>> To post, send email to [email protected]
> >>> To unsubscribe, send email to
> >>> [email protected]
> >>
> >> --
> >> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> >> To post, send email to [email protected]
> >> To unsubscribe, send email to
> >> [email protected]
> >
> > --
> > NZ PHP Users Group: http://groups.google.com/group/nzphpug
> > To post, send email to [email protected]
> > To unsubscribe, send email to
> > [email protected]
>
> --
> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> To post, send email to [email protected]
> To unsubscribe, send email to
> [email protected]
_________________________________________________________________
Find a way to cure that travel bug MSN NZ Travel
http://travel.msn.co.nz/
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]