Ver Mensaje Individual
  #3 (permalink)  
Antiguo 28/02/2012, 14:34
topikito
 
Fecha de Ingreso: abril-2007
Mensajes: 12
Antigüedad: 17 años, 8 meses
Puntos: 0
Respuesta: Problema con AutoLoader

Gracias Gator por la respuesta.

Me olvidé de poner el 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.moduleDirectory = APPLICATION_PATH "/modules" 
resources.frontcontroller.defaultmodule = "default"

resources.frontController.params.displayExceptions = 0
resources.layout.layoutPath = APPLICATION_PATH "/layouts/scripts"
resources.view[] =
resources.modules[] = ""


resources.db.adapter = "PDO_MYSQL"
resources.db.params.host = "localhost"
resources.db.params.username = "root"
resources.db.params.password = ""
resources.db.params.dbname = "zendcms"

[staging : production]



[testing : production]
resources.frontController.params.displayExceptions = 1
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1

resources.db.adapter = "PDO_MYSQL"
resources.db.params.host = "localhost"
resources.db.params.username = "root"
resources.db.params.password = ""
resources.db.params.dbname = "zendcms"

[development : production]
resources.frontController.params.displayExceptions = 1
phpSettings.display_startup_errors = 1
phpSettings.display_errors = 1
resources.frontController.params.displayExceptions = 1

resources.db.adapter = "PDO_MYSQL"
resources.db.params.host = "localhost"
resources.db.params.username = "root"
resources.db.params.password = ""
resources.db.params.dbname = "zendcms"

Ya tenía esa línea. Si borro el método del _initAutoLoad obtengo lo siguiente:

Código:
2012/02/28 21:28:45 [error] 12171#0: *218 FastCGI sent in stderr: "PHP Fatal error:  Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'No default controller directory registered with front controller' in /mnt/www-host/ZendCMS/library/Zend/Application/Bootstrap/Bootstrap.php:91
Stack trace:
#0 /mnt/www-host/ZendCMS/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#1 /mnt/www-host/ZendCMS/index.php(26): Zend_Application->run()
#2 {main}
  thrown in /mnt/www-host/ZendCMS/library/Zend/Application/Bootstrap/Bootstrap.php on line 91" while reading response header from upstream, client: 192.168.1.128, server: zendcms.loc, request: "GET /admin/user HTTP/1.1", upstream: "fastcgi://unix:/tmp/php5-fpm.sock:", host: "www.zendcms.loc"
2012/02/28 21:28:46 [error] 12171#0: *218 FastCGI sent in stderr: "PHP Fatal error:  Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'No default controller directory registered with front controller' in /mnt/www-host/ZendCMS/library/Zend/Application/Bootstrap/Bootstrap.php:91
Stack trace:
#0 /mnt/www-host/ZendCMS/library/Zend/Application.php(366): Zend_Application_Bootstrap_Bootstrap->run()
#1 /mnt/www-host/ZendCMS/index.php(26): Zend_Application->run()
#2 {main}
  thrown in /mnt/www-host/ZendCMS/library/Zend/Application/Bootstrap/Bootstrap.php on line 91" while reading response header from upstream, client: 192.168.1.128, server: zendcms.loc, request: "GET /favicon.ico HTTP/1.1", upstream: "fastcgi://unix:/tmp/php5-fpm.sock:", host: "www.zendcms.loc"