diff options
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(); |