일부 코드 수정
- index.php에서 javascript string 이어붙이기 문제 - RestAPIHelper 클래스 - 세부 서버 Autoload 수정
This commit is contained in:
+15
@@ -11,6 +11,11 @@ class Autoloader
|
||||
{
|
||||
public static function register()
|
||||
{
|
||||
static $isRegisterd = false;
|
||||
if($isRegisterd){
|
||||
return;
|
||||
}
|
||||
$isRegisterd = true;
|
||||
spl_autoload_register(function ($class) {
|
||||
$file = __DIR__.DIRECTORY_SEPARATOR.str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php';
|
||||
if (file_exists($file)) {
|
||||
@@ -19,6 +24,16 @@ class Autoloader
|
||||
}
|
||||
return false;
|
||||
});
|
||||
|
||||
spl_autoload_register(function ($class) {
|
||||
$class = Util::array_last(explode('\\', $class));
|
||||
$file = __DIR__."/d_setting/{$class}.php";
|
||||
if (file_exists($file)) {
|
||||
require $file;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
}
|
||||
Autoloader::register();
|
||||
|
||||
Reference in New Issue
Block a user