Skip to content

Instantly share code, notes, and snippets.

@elialejandro
Created June 20, 2013 17:43
Show Gist options
  • Save elialejandro/5824901 to your computer and use it in GitHub Desktop.
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)
<?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