Ver Mensaje Individual
  #5 (permalink)  
Antiguo 09/02/2012, 14:19
Avatar de memoadian
memoadian
Colaborador
 
Fecha de Ingreso: junio-2009
Ubicación: <?php echo 'México'?>
Mensajes: 3.696
Antigüedad: 14 años, 10 meses
Puntos: 641
Respuesta: Problema Zend en subcarpeta

sip cambiar la ruta a la carpeta application, lo dejé así:

Código PHP:
Ver original
  1. <?php
  2.  
  3. // Define path to application directory
  4. defined('APPLICATION_PATH')
  5.     || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application'));
  6.  
  7. // Define application environment
  8. defined('APPLICATION_ENV')
  9.     || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
  10.  
  11. // Ensure library/ is on include_path
  12. set_include_path(implode(PATH_SEPARATOR, array(
  13.     realpath(APPLICATION_PATH . '/../library'),
  14. )));
  15.  
  16. /** Zend_Application */
  17. require_once 'Zend/Application.php';
  18.  
  19. // Create application, bootstrap, and run
  20. $application = new Zend_Application(
  21.     APPLICATION_ENV,
  22.     APPLICATION_PATH . '/configs/application.ini'
  23. );
  24. $application->bootstrap()
  25.             ->run();

como dice el error el problema es en la línea 18 cuando hace el require_once. dice que no existe,

aunque esa parte no se ve en el tema que hizo usted.

gracias por todo :)