3 // Define path to application directory
4 defined('APPLICATION_PATH')
5 || define('APPLICATION_PATH', realpath(__DIR__ . '/../application'));
7 // Define application environment
8 defined('APPLICATION_ENV')
9 || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
11 // set include directories to '.' and ../library
12 set_include_path('.' . PATH_SEPARATOR . realpath(APPLICATION_PATH . '/../library'));
14 /** Zend_Application */
15 require_once 'Zend/Application.php';
17 # we use this function as a marker so xgettext knows it must extract this
18 # string. This function can be used when string must be translated, but not at
19 # the place it's called. For example, Zend_Form uses a translator to translate
20 # string it has been given. So, we must pass it a non translated string.
25 $application = new Zend_Application(
27 APPLICATION_PATH . '/configs/application.ini'