Subversion Repositories Applications.framework

Compare Revisions

Ignore whitespace Rev 392 → Rev 393

/trunk/framework/Framework.php
71,6 → 71,16
}
}
 
private static function definirCheminAppli($chemin) {
if (is_file($chemin)) {
self::$chemin = dirname($chemin).DS;
} else if (is_dir($chemin)) {
self::$chemin = $chemin;
} else {
throw new Exception("Le chemin indiqué '$chemin' n'est ni un fichier ni un dossier.");
}
}
 
private static function enregistrerMethodesAutoload() {
spl_autoload_register(array(get_class(), 'autoloadFw'));
 
141,7 → 151,7
trigger_error("Le fichier indiqué n'existe pas. Utilisez __FILE__ dans la méthode setCheminAppli().", E_USER_ERROR);
} else {
self::definirConstantesGlobales();
self::$chemin = dirname($chemin_fichier_principal).DS;
self::definirCheminAppli($chemin_fichier_principal);
self::initialiserEnvironnement();
self::initialiserFramework();
}