Update base.php
This commit is contained in:
parent
d5b3d98e0e
commit
5ad7a5aca2
|
@ -6,11 +6,6 @@ if(!function_exists('renderView')) {
|
|||
extract($data);
|
||||
}
|
||||
|
||||
// set user profile
|
||||
if(function_exists("get_user_profile")) {
|
||||
$user_profile = get_user_profile();
|
||||
}
|
||||
|
||||
// load view file
|
||||
$viewfile = './view/' . $name . '.php';
|
||||
if(file_exists($viewfile)) {
|
||||
|
@ -22,16 +17,10 @@ if(!function_exists('renderView')) {
|
|||
// load helper
|
||||
if(!function_exists('loadHelper')) {
|
||||
function loadHelper($name) {
|
||||
// set user profile
|
||||
if(function_exists("get_user_profile")) {
|
||||
$user_profile = get_user_profile();
|
||||
}
|
||||
|
||||
// load helper file
|
||||
|
||||
$helperfile = './helper/' . $name . '.php';
|
||||
if(file_exists($helperfile)) {
|
||||
include($helperfile);
|
||||
include($helperfile);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user