codeigniter扩展MY_Controller增加页面加载时间

时间:2016-12-15 12:43:44

标签: codeigniter model controller

我扩展了Codeigniter CI_controller。是否对页面加载时间有任何影响?。与此同时我创建一个名为 global_model 的模型,在此模型中我创建动态方法 ADD,UPDATE,DELETE,FETCH 数据通过方法中的传递参数。这个模型工作顺利,数据量大还是会崩溃?模特看起来像这样: -

 public function add($table, $data) {
    return $this->db
                    ->insert($table, $data);
}

public function delete($table, $where) {
    return $this->db
                    ->delete($table, $where);
}

public function update($table, $where, $data) {
    return $this->db
                    ->where($where)
                    ->update($table, $data);
}

0 个答案:

没有答案
相关问题