1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| <?php
// Set the initial include_path. You may need to change this to ensure that
// Zend Framework is in the include_path; additionally, for performance
// reasons, it's best to move this to your web server configuration or php.ini
// for production.
/* set_include_path(implode(PATH_SEPARATOR, array(
realpath(dirname(__FILE__) . '/../library'),
get_include_path(),
)));*/
set_include_path('.'
. PATH_SEPARATOR . './../library'
. PATH_SEPARATOR . './../application/models'
. PATH_SEPARATOR . './../application/classes'
. PATH_SEPARATOR . './../application/forms'
. PATH_SEPARATOR . get_include_path());
// 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'));
require_once 'Zend/Loader/Autoloader.php';
Zend_Loader_Autoloader::getInstance();
Zend_Loader::loadClass ( 'Zend_Controller_Front' );
/** Zend_Application */
//require_once 'Dbinitialize.php';
require_once 'Zend/Application.php';
require_once 'Dbtable/etudiants.php';
require_once 'Dbtable/users.php';
require_once 'FormulaireEtudiant.php';
// Create application, bootstrap, and run
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/application.ini'
);
$application->bootstrap();
$application->run(); |
Partager