Hi Paul

I tried the resource.modules[] = but to now avail. I did however move the functionality from my Boostrap.php to application.ini but using these two lines instead

resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"

Excluding either prevents module set-up.

My full application.ini is:

[bootstrap]
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
autoloadernamespaces[] = "Doctrine"
autoloadernamespaces[] = "ECS"
includePaths.library = APPLICATION_PATH "/../library"
resources.layout.layout = "layout"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"

resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"

resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"

resources.view[] =

[production : bootstrap]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
resources.frontController.params.displayExceptions = 0


[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

Be aware this is just a development site while I play with Zend 1.10 on IIS 7.5

On 8/14/2010 7:20 AM, Paul wrote:
Do you have the following in your application.ini?

resources.modules[] =

On 8/13/2010 2:46 PM, Shane McGovern wrote:
Could someone post a working example of an application.ini for a
module structure that works.

I have:

application
/modules
/module1
/controllers
/...
/module2
/controllers

set-up. I can get my framework (1.10) to work fine by including this
in my base Bootstrap.php file:

$front = Zend_Controller_Front::getInstance();

$front->setControllerDirectory(
array(
'default' => APPLICATION_PATH . '/modules/module1/controllers',
'module1' => APPLICATION_PATH . '/modules/module2/controllers'
)
);

But I cannot figure out how to use

resources.frontController.moduleControllerDirectoryName,
resources.frontController.moduleDirectory, &
resources.frontController.defaultControllerName

Et Cetera

In the application.ini file, to do the same. Is this even best practice?

Reply via email to