starlinks/public/index.php

15 lines
591 B
PHP
Raw Normal View History

<?php
2015-09-29 18:59:45 +02:00
// --- Define path to application directory
defined('APPLICATION_PATH')
2015-09-29 18:59:45 +02:00
|| define('APPLICATION_PATH', realpath(__DIR__ . '/../application'));
2015-09-29 18:59:45 +02:00
// --- Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
2015-09-29 18:59:45 +02:00
// --- Composer autoload
require_once realpath(__DIR__ . '/../vendor/autoload.php');
2015-09-29 18:59:45 +02:00
// --- Create application, bootstrap, and run
$application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini');
$application->bootstrap()->run();