]> dev.renevier.net Git - syj.git/blob - public/init.php
add mapquest layer back
[syj.git] / public / init.php
1 <?php
2
3 // Define path to application directory
4 defined('APPLICATION_PATH')
5     || define('APPLICATION_PATH', realpath(__DIR__ . '/../application'));
6
7 // Define application environment
8 defined('APPLICATION_ENV')
9     || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
10
11 // set include directories to '.' and ../library
12 set_include_path('.' . PATH_SEPARATOR . realpath(APPLICATION_PATH . '/../library'));
13
14 /** Zend_Application */
15 require_once 'Zend/Application.php';
16
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.
21 function __($str) {
22     return $str;
23 }
24
25 $application = new Zend_Application(
26     APPLICATION_ENV,
27     APPLICATION_PATH . '/configs/application.ini'
28 );