Skip to content

Instantly share code, notes, and snippets.

@robzienert
Created April 12, 2010 18:56
Show Gist options
  • Save robzienert/363883 to your computer and use it in GitHub Desktop.
Save robzienert/363883 to your computer and use it in GitHub Desktop.
<?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