index.php 754 B

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