Eliminate the need for a “controller” in the Zend Framework controller file name

How to get rid of the need for the suffix "Controller" in the file name of the Zend Framework controller? It just becomes tiresome to continue typing this suffix when creating the controllers, and yet the file is already in the controllers folder, so it is superfluous.

For example, by default, the home page on the site goes to "controllers / IndexController.php". What if I want it to go to "controller / index.php"?

+3
source share
1 answer

"" Zend_Controller_Dispatcher_Abstract::formatControllerName().

, Dispatcher, Zend_Controller_Dispatcher_Interface formatControllerName(). dispatch() script $frontController->setDispatcher().

? , PHP URL- .

, bikeshedding.

+5

Source: https://habr.com/ru/post/1728408/


All Articles