index.php 628 B

12345678910111213141516171819
  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. // Create application, bootstrap, and run
  10. $application = new Zend_Application(
  11. APPLICATION_ENV,
  12. APPLICATION_PATH . '/configs/application.ini'
  13. );
  14. $application->bootstrap()
  15. ->run();