일부 코드 수정

- index.php에서 javascript string 이어붙이기 문제
- RestAPIHelper 클래스
- 세부 서버 Autoload 수정
This commit is contained in:
2018-03-25 00:45:23 +09:00
parent 3fbf1d4b0c
commit c3cb100947
4 changed files with 21 additions and 6 deletions
+15
View File
@@ -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();