Update base.php

This commit is contained in:
Namhyeon Go 2018-02-26 19:58:54 +09:00 committed by GitHub
parent 9159fe239a
commit 333ee169d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,6 +14,17 @@ if(!function_exists('renderView')) {
}
}
// load system module
if(!function_exists('loadModule')) {
function loadModule($name) {
// load system file
$systemfile = './system/' . $name . '.php';
if(file_exists($systemfile)) {
include($systemfile);
}
}
}
// load helper
if(!function_exists('loadHelper')) {
function loadHelper($name) {