I've read a book titled zend framework: beginner's guide. It was mentioned that it's best practice to create modules and categorize things.
I've added the modules directory to the application directory and moved views,controllers and models directory into it. The structure is as below:
application
- configs
- modules
- Bootstrap.php
when I pop open the browser and surf to the following URLs:
localhost/square/default/index/index
OR
localhost/square/public/default/index/index
I get not found
error message. I've changed the configuration file (application.ini) as below:
resources.frontcontroller.controllerDirectory = APPLICATION_PATH "/modules/default/controllers"
resources.frontcontroller.params.displayExceptions = 0
resources.frontcontroller.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules = ""
I've read the following questions, but that didn't help: