mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Full url prefix is better defined before auto loading
This commit is contained in:
parent
1ff63758ad
commit
36243b45f8
1 changed files with 14 additions and 11 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue