Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1497 Rev 1534
Line 12... Line 12...
12
function __autoload($classe) {
12
function __autoload($classe) {
13
	if (class_exists($classe)) {
13
	if (class_exists($classe)) {
14
		return null;
14
		return null;
15
	}
15
	}
Line 16... Line 16...
16
	
16
	
17
	$chemins = array('', 'services/');
17
	$chemins = array('', 'services/', 'bibliotheque/');
18
	foreach ($chemins as $chemin) {
18
	foreach ($chemins as $chemin) {
19
		$chemin = $chemin.$classe.'.php';
19
		$chemin = $chemin.$classe.'.php';
20
		if (file_exists($chemin)) {
20
		if (file_exists($chemin)) {
21
			require_once $chemin;
21
			require_once $chemin;