Created
April 16, 2010 00:52
-
-
Save robzienert/367859 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// application/Bootstrap.php | |
// note: If you want to have the module autoloader running on the default module, you'll need to add this to your application bootstrap. Boo... | |
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap | |
{ | |
protected function _initDefaultModuleAutoloader() | |
{ | |
$autoloader = new Zend_Application_Module_Autoloader(array( | |
'namespace' => 'Default', | |
'basePath' => APPLICATION_PATH . '/modules/default/', | |
)); | |
} | |
} | |
// application/configs/application.ini | |
[production] | |
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules" | |
; This gets Zend_Application_Resource_Modules to instantiate! | |
resources.modules[] = | |
// application/modules/admin/Bootstrap.php | |
<?php | |
class Admin_Bootstrap extends Zend_Application_Module_Bootstrap | |
{ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment