enrichissement/public/index.php

15 lines
591 B
PHP
Raw Permalink Normal View History

2012-01-13 14:35:11 +01:00
<?php
2015-09-16 09:12:56 +02:00
// --- Define path to application directory
2012-01-13 14:35:11 +01:00
defined('APPLICATION_PATH')
2015-09-16 09:12:56 +02:00
|| define('APPLICATION_PATH', realpath(__DIR__ . '/../application'));
2012-01-13 14:35:11 +01:00
2015-09-16 09:12:56 +02:00
// --- Define application environment
2012-01-13 14:35:11 +01:00
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
// --- Composer autoload
2015-09-16 09:12:56 +02:00
require_once realpath(__DIR__ . '/../vendor/autoload.php');
2012-01-13 14:35:11 +01:00
2015-09-16 09:12:56 +02:00
// --- Create application, bootstrap, and run
$application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
2013-10-29 07:54:05 +01:00
$application->bootstrap()->run();