index.php 666 B

123456789101112131415161718192021
  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') : 'production'));
  8. set_include_path(realpath(dirname(__FILE__) . '/../vendor/zendframework/zendframework1/library'));
  9. require_once 'Zend/Application.php';
  10. // Create application, bootstrap, and run
  11. $application = new Zend_Application(
  12. APPLICATION_ENV,
  13. APPLICATION_PATH . '/configs/application.ini'
  14. );
  15. $application->bootstrap()
  16. ->run();