I agree, ZF was always designed from the beginning to be a library that you could re-use without the main loop.
Its great to see that happening too. I was actually adding a login box to a site-wide template ( a ZF layout) . I made a login form on a layout (site wide template) and left the form action empty. Then I catch the post as early as possible (pre-routing) , and process the login/logout using Zend Auth which puts result in session, and simply redirect back to the request uri. I think that the problem is that ZF assumes I will dispatch it, but effectively I am dispatching it in a front controller, so it hasn't made life easier yet. In which case maybe I am justified in just using good ol PHP J From: [email protected] [mailto:[email protected]] On Behalf Of S.Mohammed Alsharaf Sent: Thursday, 4 March 2010 9:39 a.m. To: [email protected] Subject: RE: [phpug] Speaking of factory factory factory 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] _____ MSN NZ Travel Find a way to cure <http://travel.msn.co.nz/> that travel bug -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected] No virus found in this incoming message. Checked by AVG - www.avg.com Version: 9.0.733 / Virus Database: 271.1.1/2719 - Release Date: 03/03/10 08:34:00 -- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
