ZF-11520: formatActionName() changes action name to lowercase but getActionName() in Request returns unchanged action name

Issue Type: Bug Created: 2011-07-01T11:16:43.000+0000 Last Updated: 2011-07-26T14:08:07.000+0000 Status: Open Fix version(s): Reporter: Daniel Pavlyuchkov (dako) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Controller

Related issues: Attachments:


I have a route that looks like this: /article/:id/:action and it maps to /Article/article/create/id/1

When I try to access it with /article/1/EDIT my route matches and is assembled correctly because Zend_Controller_Dispatcher_Abstract::formatActionName() transforms parameter from my request to lowercase.

When I try to print editorial menu by matching $this->getRequest()->getActionName() with 'edit' it returns false (because 'EDIT' != 'edit').

Either getRequest()->getActionName() should return correctly transformed action name or formatActionName() should not transform it to lowercase.


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.