<?php
/*
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);
*/
// Define path to application directory
defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));
// Define application environment
defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'active'));
// Define path to application directory
defined('ROOT_PATH') || define('ROOT_PATH', realpath(dirname(__FILE__)));
defined('BASE_URL') || define('BASE_URL', 'http://' . $_SERVER['SERVER_NAME']);
defined('HOST_URL') || define('HOST_URL', $_SERVER['SERVER_NAME']);
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array( realpath(ROOT_PATH . '/library'), get_include_path(), )));
require_once 'Zend/Application.php';
require_once 'My/Application.php';
$application = new My_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini' );
$application->bootstrap()->run();
Bookmarks