diff options
author | OpenSLX | 2010-01-20 16:47:35 +0100 |
---|---|---|
committer | OpenSLX | 2010-01-20 16:47:35 +0100 |
commit | 04173263974af0e7a354e066b9d7ec9c13c4289d (patch) | |
tree | 82dc2e2662d24e0aaba8a16c4c90b3819c06a662 /public/index.php | |
download | pbs-04173263974af0e7a354e066b9d7ec9c13c4289d.tar.gz pbs-04173263974af0e7a354e066b9d7ec9c13c4289d.tar.xz pbs-04173263974af0e7a354e066b9d7ec9c13c4289d.zip |
initial import
Diffstat (limited to 'public/index.php')
-rw-r--r-- | public/index.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..c8b5cde --- /dev/null +++ b/public/index.php @@ -0,0 +1,27 @@ +<?php + +// 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') : 'production')); + +// Ensure library/ is on include_path +set_include_path(implode(PATH_SEPARATOR, array( + realpath(APPLICATION_PATH . '/../library'), + '/opt/ZF/library', + get_include_path(), +))); + +/** Zend_Application */ +require_once 'Zend/Application.php'; + +// Create application, bootstrap, and run +$application = new Zend_Application( + APPLICATION_ENV, + APPLICATION_PATH . '/configs/application.ini' +); +$application->bootstrap() + ->run(); |