Full url prefix is better defined before auto loading

This commit is contained in:
Saleh Souzanchi 2012-08-09 06:42:24 +04:30
parent 1ff63758ad
commit 36243b45f8

View file

@ -126,21 +126,12 @@ if (!defined('JS_URL')) {
}
require CAKE . 'basics.php';
require CAKE . 'Core' . DS . 'App.php';
require CAKE . 'Error' . DS . 'exceptions.php';
spl_autoload_register(array('App', 'load'));
App::uses('ErrorHandler', 'Error');
App::uses('Configure', 'Core');
App::uses('CakePlugin', 'Core');
App::uses('Cache', 'Cache');
App::uses('Object', 'Core');
App::$bootstrapping = true;
Configure::bootstrap(isset($boot) ? $boot : true);
/**
* Full url prefix
@ -158,3 +149,15 @@ if (!defined('FULL_BASE_URL')) {
}
unset($httpHost, $s);
}
spl_autoload_register(array('App', 'load'));
App::uses('ErrorHandler', 'Error');
App::uses('Configure', 'Core');
App::uses('CakePlugin', 'Core');
App::uses('Cache', 'Cache');
App::uses('Object', 'Core');
App::$bootstrapping = true;
Configure::bootstrap(isset($boot) ? $boot : true);