Si, el appnamespace es appnamespace = "Application" y si, cuando creo un model lo puedo instanciar sin problemas, no se si sea importante mencionar que hice una integracion con doctrine. Copio mi bootsrap y mi application.ini completo:
Bootstrap:
Código PHP:
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
protected function _initDoctrine()
{
//Añadir Doctrine al autoloader de Zend
$this->getApplication()->getAutoloader()
->pushAutoloader(array('Doctrine', 'autoload'));
//Llamar al autoloader de Doctrine para que cargue los modelos
spl_autoload_register(array('Doctrine', 'modelsAutoload'));
//Obtener los parámetros definidos en el archivo appication.ini
$doctrineConfig = $this->getOption('doctrine');
$manager = Doctrine_Manager::getInstance();
//Definir los atributos de acceso y de carga de modelos
$manager->setAttribute(Doctrine::ATTR_AUTO_ACCESSOR_OVERRIDE, true);
$manager->setAttribute(
Doctrine::ATTR_MODEL_LOADING,
$doctrineConfig['model_autoloading']
);
Doctrine_Core::loadModels($doctrineConfig['models_path']);
//Crear la conexión a base de datos segun el DSN
$conn = Doctrine_Manager::connection($doctrineConfig['dsn'],'doctrine');
//Definir la forma nativa ENUM
$conn->setAttribute(Doctrine::ATTR_USE_NATIVE_ENUM, true);
return $conn;
}
}
application.ini:
Código:
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
includePaths.library = APPLICATION_PATH "/../library"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
appnamespace = "Application"
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.params.displayExceptions = 0
autoloaderNamespaces[] = "Doctrine"
; ------------------------------------------
; database
; ------------------------------------------
doctrine.dsn = "mysql://root:@localhost/bruno"
doctrine.data_fixtures_path = APPLICATION_PATH "/configs/data/fixtures"
doctrine.sql_path = APPLICATION_PATH "/configs/data/sql"
doctrine.migrations_path = APPLICATION_PATH "/configs/migrations"
doctrine.yaml_schema_path = APPLICATION_PATH "/configs/schema.yml"
doctrine.models_path = APPLICATION_PATH "/models"
doctrine.model_autoloading = 2
resources.layout.layout = "layout"
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts/"
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.plugins.Layout = "Application_Plugin_Layout"
[staging : production]
[testing : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
[development : production]
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1