Skip to content

Instantly share code, notes, and snippets.

@robzienert
Created April 16, 2010 00:52
Show Gist options
  • Save robzienert/367859 to your computer and use it in GitHub Desktop.
Save robzienert/367859 to your computer and use it in GitHub Desktop.
// 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