Update base.php
This commit is contained in:
parent
9159fe239a
commit
333ee169d6
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user