Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/05/2011, 13:25
Avatar de uselox
uselox
 
Fecha de Ingreso: agosto-2008
Ubicación: Lima, Perú
Mensajes: 168
Antigüedad: 15 años, 8 meses
Puntos: 12
Respuesta: Instalacion Aplicacion Zend Servidor Compartido

hola, usa la siguiente estructura
Código:
hotel
----System
--------application
------------configs
----------------application.ini
------------controllers
----------------helpers
----------------IndexController.php
----------------ErrorController.php
------------forms
------------layouts
----------------scripts
------------models
----------------DbTable
------------views
----------------filters
----------------helpers
----------------scripts
--------------------index
------------------------index.phtml
--------------------error
------------------------error.phtml
------------Bootstrap.php
--------library
--------.htaccess
----images
----css
----js
----.htaccess
----index.php
todo es igual solo eh creado una carpeta "System" donde eh puesto la carpeta application y library y eh creado un archivo .htaccess para esta carpeta y contiene:
Código:
deny from all
y eh sacado lo que contiene la carpeta public junto con la carpeta System,
el archivo index.php debe contener:
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__) . '/System/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.               get_include_path(),
  15. )));
  16.  
  17. /** Zend_Application */
  18. require_once 'Zend/Application.php';
  19.  
  20. // Create application, bootstrap, and run
  21. $application = new Zend_Application(
  22.               APPLICATION_ENV,
  23.               APPLICATION_PATH . '/configs/application.ini'
  24. );
  25. $application->bootstrap()
  26.               ->run();

solo eh agregado a la constante APPLICATION_PATH la nueva ruta de la carpeta application, y la carpeta de zend lo puedes poner dentro de la carpeta library.

Saludos.
__________________
El querer... es poder!!

Última edición por uselox; 20/05/2011 a las 13:33 Razón: estetica de texto ^^