Modular Zend Application

For programming and general questions on Zend Framework

Modular Zend Application

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

Hello,

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

Site
    +application
    +configs
    +modules
      +admin
      +default
    +Bootstrap.php
    +docs
    +library
    +public
    +test

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

Admin_Bootstrap
Default_Bootstrap

My application.ini file is as follows:

Code: Select all
[production]
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"
resources.frontController.defaultModule="default"
;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?
joaquinaples
 
Posts: 6
Joined: Mon Feb 04, 2013 10:13 am

Return to Zend Framework

Who is online

Users browsing this forum: Exabot [Bot] and 4 guests