Updated a few things
This commit is contained in:
@@ -27,6 +27,21 @@ class Controller {
|
||||
}
|
||||
}
|
||||
|
||||
public function load_helpers($helper=NULL) {
|
||||
$this->load_helper($helper);
|
||||
}
|
||||
public function load_helper($helper=NULL) {
|
||||
// All helpers end with '_helper'
|
||||
if(is_array($helper)) {
|
||||
foreach($helper as $k=>$m) {
|
||||
$helper[$k]=$m."_helper";
|
||||
}
|
||||
} else {
|
||||
$helper.="_helper";
|
||||
}
|
||||
$this->_load_files($helper, "helpers");
|
||||
}
|
||||
|
||||
public function load_models($model=NULL) {
|
||||
$this->load_model($model);
|
||||
}
|
||||
|
Reference in New Issue
Block a user