Created
June 20, 2013 17:43
-
-
Save elialejandro/5824901 to your computer and use it in GitHub Desktop.
Habilitar el los modelos en la carpeta principal del proyecto de Zend Framework (vesión 1.12.3)
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 | |
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap | |
{ | |
protected function _initResourceAutoloader() | |
{ | |
// Resgistrando el espacio de nombres vacío | |
$resourceAutoloader = new Zend_Loader_Autoloader_Resource(array( | |
'basePath' => APPLICATION_PATH, | |
'namespace' => '' | |
)); | |
// Registrando el recurso, Model | |
$resourceAutoloader->addResourceType('model', 'models/', 'Model'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment