I've a pretty standard ZF application with a controller plugin that verifies for ACL things.
If user doesn't have permission to access a certain resource, it will redirect to Auth controller. Something like this:
$request->setModuleName('public')
->setControllerName('auth')
->setActionName('index');
This is done at routeShutdown() method.
The issue is that Zend Navigation still work as if the request was not modified. Example: if request was to index controller, it will behave as if the request still has index as controller and not auth.
My application heavily relies on some Zend Navigation features, so this is an issue to me.
Could this be considered a bug or is it the expected behavior? Any ideas for a workaround?
Thanks!
Fernando Morgenstern
contato@fernandomarcelo.com
没有评论:
发表评论