-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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
iEYEARECAAYFAknaBWQACgkQ0HfT5Ws789Dp3gCgvTAlmIFGc460ie3x3pirnEl3
OmMAn1pQiURYGSMckdqewROXSWOrdE8T
=pr38
-----END PGP SIGNATURE-----