Update base.php

This commit is contained in:
Namhyeon Go 2018-03-08 19:01:12 +09:00 committed by GitHub
parent 828ead9aa8
commit 249974fc26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,6 +36,22 @@ if(!function_exists('loadHelper')) {
}
}
// re-route
if(!function_exists('reRoute')) {
function reRoute($name, $data=array()) {
if(count($data) > 0) {
extract($data);
}
// load route file
$routefile = './route/' . $name . '.php';
if(file_exists($routefile)) {
include($routefile);
}
}
}
if(!function_exists('array_key_empty')) {
function array_key_empty($key, $array) {
$empty = true;