Subversion Repositories Applications.framework

Rev

Rev 179 | Rev 188 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 179 Rev 180
Line 12... Line 12...
12
 * @author Aurelien PERONNET <aurelien@tela-botanica.org>
12
 * @author Aurelien PERONNET <aurelien@tela-botanica.org>
13
 // Autres auteurs :
13
 // Autres auteurs :
14
 * @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
14
 * @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
15
 * @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
15
 * @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
16
 * @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
16
 * @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
17
 * @version $$Id: autoload.inc.php 153 2010-03-04 10:48:32Z jpm $$
17
 * @version $$Id: autoload.inc.php 180 2010-04-26 12:18:52Z jpm $$
18
 * @copyright 1999-2009 Tela Botanica (accueil@tela-botanica.org)
18
 * @copyright 1999-2009 Tela Botanica (accueil@tela-botanica.org)
19
 */
19
 */
Line 20... Line 20...
20
 
20
 
21
// Redéfinition de la constante DIRECTORY_SEPARATOR
21
// Redéfinition de la constante DIRECTORY_SEPARATOR
Line 35... Line 35...
35
		return null;
35
		return null;
36
	}
36
	}
37
}
37
}
38
spl_autoload_register('autoloadFw');
38
spl_autoload_register('autoloadFw');
Line 39... Line -...
39
 
-
 
40
// Instanciation du gestionnaire d'exception
-
 
41
GestionnaireException::getInstance();
-
 
42
// Instanciation du gestionnaire de logs
-
 
43
Log::getInstance();
-
 
44
// Encodage de l'application (défini ici car on peut avoir des sorties d'erreurs dès le début)
-
 
45
mb_internal_encoding(Config::get('appli_encodage'));
-
 
46
 
39
 
47
// Autoload par défaut pour l'application
40
// Autoload par défaut pour l'application
48
function autoloadAppliDefaut($nom_classe) {
41
function autoloadAppliDefaut($nom_classe) {
49
	$dossiers_classes = array(	Config::get('chemin_controleurs'),
42
	$dossiers_classes = array(	Config::get('chemin_controleurs'),
50
								Config::get('chemin_modeles'),
43
								Config::get('chemin_modeles'),