Hola gente,
Tengo un problema, estoy usando Zend Framework 1.12.
Mi problema es que no me carga las clases que tengo debajo de la carpeta models.
Mi estructura de carpetas es:
application
->configs
->languajes
->layouts
->
models
->modules
Mi application.ini es:
Código PHP:
[production]
phpSettings.display_startup_errors = 0
phpSettings.display_errors = 0
;
;includePaths.library = APPLICATION_PATH "/../library"
includePaths.model = APPLICATION_PATH "/models"
bootstrap.path = APPLICATION_PATH "/Bootstrap.php"
bootstrap.class = "Bootstrap"
autoloaderNamespaces[] = "Application_"
autoloaderNamespaces[] = "Plugins"
;
resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.frontController.defaultControllerName = "index"
resources.frontController.defaultAction = "index"
resources.frontController.baseUrl = "/"
resources.frontController.env = APPLICATION_ENV
resources.frontController.throwExceptions = false
resources.frontController.params.displayExceptions = 0
resources.frontController.moduleDirectory = APPLICATION_PATH "/modules"
resources.frontController.moduleControllerDirectoryName = "controllers"
resources.frontController.params.prefixDefaultModule = true
resources.frontController.baseUrl = "/"
resources.modules = yes
;
errorhandler.class = "Zend_Controller_Plugin_ErrorHandler"
errorhandler.options.module = default
errorhandler.options.controller = error
errorhandler.options.action = error
;
resources.frontController.plugins[] = "Plugins_Controller_Ssl"
resources.frontController.plugins[] = "Plugins_Security"
;
;LOGS
resources.log.stream.writerName = "Stream"
resources.log.stream.writerParams.stream = APPLICATION_PATH "/../logs/application.log"
resources.log.stream.writerParams.mode = "a"
;
;
; Default Language_Locale
lang_local = "es_ES"
;
; - Layout
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
resources.layout.layout = "layout"
; - Database
resources.db.adapter = Pdo_Mysql
;resources.db.params.unix_socket = /var/lib/mysql/mysql.sock
resources.db.params.host = localhost
resources.db.params.username = root
resources.db.params.password = ******
resources.db.params.dbname = cursos
resources.db.params.charset = "utf8"
;
El bootstrap.php tiene:
Código PHP:
protected function _initAutoload()
{
$autoloader = new Zend_Application_Module_Autoloader(array(
'namespace' => 'Application',
'basePath' => dirname(__FILE__),
));
return $autoloader;
}
Dentro de la carpeta models mis clases son:
El archivo php se llama Usuario.php
Las clase se llama:
Código PHP:
class Usuario{
Espero haberme explicado bien, desde ya muchas gracias.