Created
April 12, 2010 18:56
-
-
Save robzienert/363883 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
<?php | |
// Bootstrap.php | |
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap | |
{ | |
// ... | |
protected function _initDefaultModuleAutoloader() | |
{ | |
$autoloader = new Zend_Application_Module_Autoloader(array( | |
'namespace' => 'Default', | |
'basePath' => APPLICATION_PATH . '/modules/default/', | |
)); | |
$autoloader->addResourceTypes(array( | |
'mapper' => array( | |
'namespace' => 'Model_Mapper', | |
'path' => 'models/Mapper', | |
), | |
'databinds' => array( | |
'namespace' => 'Model_Data', | |
'path' => 'models/Data', | |
), | |
)); | |
} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment