_FILE__) . '/../application')); define('MODULE_PATH', realpath(dirname(__FILE__) . '/../application/modules')); define('LIBRARY_PATH', realpath(dirname(__FILE__) . '/../library')); define('ZEND_PATH', realpath(dirname(__FILE__) . '/../library/Zend')); define('GOOGLE_PATH', realpath(dirname(__FILE__) . '/../library/Visites')); define('APPLICATION_ENV', $environnement); define('ROOT', $_SERVER['DOCUMENT_ROOT'].'/'); //On definit le module front ou backend define('MODULE', (strstr($_SERVER['REQUEST_URI'],"backend") || strstr($_SERVER['REQUEST_URI'],"mci_adm"))?'backend':'frontend'); // On modifie l'include path de PHP set_include_path(implode(PATH_SEPARATOR, array(realpath(ZEND_PATH), realpath(LIBRARY_PATH), realpath(GOOGLE_PATH), get_include_path()))); // On lance la session require_once LIBRARY_PATH.'/Zend/Session.php'; Zend_Session::start(); // On a besoin de Zend Application pour lancer notre application require_once LIBRARY_PATH.'/Zend/Application.php'; // On créé l'application, on lance le bootstrap et on lance l'application ! $application = new Zend_Application(APPLICATION_ENV, APPLICATION_PATH . '/configs/application.ini'); $application->bootstrap() ->run(); ?>