Modular Zend Application

For programming and general questions on Zend Framework

Modular Zend Application

Postby joaquinaples on Mon Feb 11, 2013 11:39 pm


I'm trying to create an application with the following directory structure:


In each module I have a class that extends the class Zend_Application_Module_Bootstrap, and are respectively:


My application.ini file is as follows:

Code: Select all
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0

;module support
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.modules[] = ""
resources.frontController.params.prefixDefaultModule = "1"
;end module support
[staging : production]

[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1

[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1

If I try to get to the url .....//localhost/site/public/ it's ok, but if i try to get to the url ....//localhost/site/public/admin I get the error The requested URL .....//localhost/site/public/admin was not found on this server.

What's wrong?
Posts: 6
Joined: Mon Feb 04, 2013 10:13 am

Return to Zend Framework

Who is online

Users browsing this forum: Bing [Bot], Yahoo [Bot] and 1 guest