-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 To actually answer your question, do $this->_forward(); within your controller. ................................... : ___ _ ___ ___ ___ _ ___ : : | \ /_\ / __| _ \ _ (_) \ : : | |) / _ \\__ \ _/ / | |) | : : |___/_/:\_\___/_| |_|_\_|___/ : :........:........................: : Web : http://www.dasprids.de : : E-mail : [email protected] : : Jabber : [email protected] : : ICQ : 105677955 : :........:........................:
Ben Scholzen 'DASPRiD' schrieb: > http://www.rmauger.co.uk/2009/03/why-the-zend-framework-actionstack-is-evil/ > ................................... > : ___ _ ___ ___ ___ _ ___ : > : | \ /_\ / __| _ \ _ (_) \ : > : | |) / _ \\__ \ _/ / | |) | : > : |___/_/:\_\___/_| |_|_\_|___/ : > :........:........................: > : Web : http://www.dasprids.de : > : E-mail : [email protected] : > : Jabber : [email protected] : > : ICQ : 105677955 : > :........:........................: > > > Fire Eye'd Boy schrieb: >> Hi all, > >> I'm trying to forward a request to a previous made request if the users >> login session was expired. > >> What I have is the following in my UserController::login() if login >> succeeded: > >> <?php > > >> $cmsApplication = Cms_Application::getInstance(); > >> if( $cmsApplication->hasReferrer() ) >> { >> // Zend_Controller_Request_Abstract $referrer >> $referrer = $cmsApplication->getReferrer(); >> $frontController = Zend_Controller_Front::getInstance(); >> $frontController->getPlugin( 'Zend_Controller_Plugin_ActionStack' ) >> ->forward( $referrer ); >> return; >> } > >> ?> > >> Unfortunately the plugin remembers the currect requests params and >> request method as well. I'ld like to be able to completely replace the >> current request with the referring request I had saved in my session. >> Specifically overwrite the current request method. Any idea's on how I >> could do this? > >> Thank you in advance. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknaCO8ACgkQ0HfT5Ws789BXJACggsGE2ESNeUBx0GWIA4QC/BBV OBIAmwQ41b6QAnOhapDe7/8+bdtYHOGH =OpdR -----END PGP SIGNATURE-----
