1
0
Fork 0

Implemented new Configuration handling

Dieser Commit ist enthalten in:
DSB 2012-08-04 10:40:48 +00:00
Ursprung 6cfb97b401
Commit edc44e2f30
22 geänderte Dateien mit 730 neuen und 107 gelöschten Zeilen

Datei anzeigen

@ -1,18 +1,13 @@
<?php
define('DS', DIRECTORY_SEPARATOR);
define('WORK_PATH', realpath(dirname(__FILE__) . DS. '..' . DS . 'work'));
define('WORK_PATH', realpath(dirname(__FILE__) . '/../work'));
// Define path to application directory
defined('APPLICATION_PATH') || define(
'APPLICATION_PATH', realpath(
dirname(__FILE__) . DS . '..' . DS . 'application'
)
'APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application')
);
defined('LIBRARY_PATH') || define(
'LIBRARY_PATH', realpath(
dirname(__FILE__) . DS . '..' . DS . 'library'
)
'LIBRARY_PATH', realpath(dirname(__FILE__) . '/../library')
);
// Define application environment
@ -28,11 +23,7 @@ if (!defined('APPLICATION_ENV')) {
// Ensure library/ is on include_path
set_include_path(
implode(
PATH_SEPARATOR, array(realpath(
APPLICATION_PATH . DS . '..' . DS .'library'
),
get_include_path())
implode(PATH_SEPARATOR, array(LIBRARY_PATH, get_include_path())
)
);
@ -47,7 +38,7 @@ require_once 'Zend/Application.php';
// Create application, bootstrap, and run
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . DS . 'configs' . DS .'application.ini'
APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap()
->run();
->run();