示例#1
0
        if (empty($names)) {
            return false;
        }
        if (!is_array($names)) {
            $tmp[0] = $names;
            $names = $tmp;
        }
        foreach ($names as $name) {
            include 'helpers/' . $name . '.php';
        }
    }
    public static function model($names)
    {
        if (empty($names)) {
            return false;
        }
        if (!is_array($names)) {
            $tmp[0] = $names;
            $names = $tmp;
        }
        foreach ($names as $name) {
            include 'model/' . $name . '.php';
        }
    }
}
//Auto Load from config
config::load();
load::library(config::item('autoload_lib'));
load::helper(config::item('autoload_helper'));
load::model(config::item('autoload_model'));