I am writing a Zend application.
I am using the zend command line tool. I created a couple of Default and User modules and marked Default as the default controller in the application configuration file. I also created appropriate index controllers / actions for these two modules.
When I look at the root of the site, everything is in order. But when I look at $site_root$/user , instead of getting information about the index controller, I get errors.
Notice: Undefined index: user in E:\xampp\php\PEAR\Zend\Controller\Dispatcher\Standard.php on line 384 Message: Invalid controller specified (index) Stack trace: #0 E:\xampp\php\PEAR\Zend\Controller\Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 E:\xampp\php\PEAR\Zend\Application\Bootstrap\Bootstrap.php(97): Zend_Controller_Front->dispatch() #2 E:\xampp\php\PEAR\Zend\Application.php(366): Zend_Application_Bootstrap_Bootstrap->run() #3 E:\xampp\htdocs\$project$\public\index.php(26): Zend_Application->run() #4 {main} Request Parameters: array ( 'module' => 'user', 'controller' => 'index', 'action' => 'index', )
However, when I browse $site_root$/user , everything is OK again. Obviously, the URL must be case sensitive in order to display the module name. I thought of something like this, like re-writing the Zend Request class. But what is the best practice of getting the lowercase module name in the url?
Edit 1: Folder structure:

source share