method which seems much simpler than utilizing Session. I'm about to board a
plane so I'll be brief. If you need code for a specific piece, post back and
I'll set you up:
1 - Write a front-controller plug-in and hook into routeShutdown
NOTE: I haven't seen any good reason to wait any longer than
routeShutdown (if anyone has contrary feedback, I'd be interested in knowing
about it)
2 - bail-out early if already logged in (return;)
3 - if the requested resource is not secured, bail-out (return;)
4 - switch the resource by manually setting module, controller, and action
5 - set a request parameter
Example: $request->setParam('onAuthenticateGoto',
$request->getPathInfo());
6 - return the request object
Good luck. Let me know if you need a pastie.
-----
--
Wil Moore III
Why is Bottom-posting better than Top-posting:
http://www.caliburn.nl/topposting.html
--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Referer-tp3007321p3012923.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论