diff options
| author | Simon | 2011-01-17 13:18:35 +0100 |
|---|---|---|
| committer | Simon | 2011-01-17 13:18:35 +0100 |
| commit | 875dbf26df46068d505070807ae8eb787ebc79f4 (patch) | |
| tree | df93776fb62b4cfe8eca71de581d5e17eec2b7ce /public/index.php | |
| parent | zend lokal einrichten (diff) | |
| download | pbs2-875dbf26df46068d505070807ae8eb787ebc79f4.tar.gz pbs2-875dbf26df46068d505070807ae8eb787ebc79f4.tar.xz pbs2-875dbf26df46068d505070807ae8eb787ebc79f4.zip | |
Initialize Zend
Diffstat (limited to 'public/index.php')
| -rw-r--r-- | public/index.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..a7ade9f --- /dev/null +++ b/public/index.php @@ -0,0 +1,26 @@ +<?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'), + 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();
\ No newline at end of file |
