function update() { $params = $this->input->post(); $obj = new Websetting(); $obj->where('id', $params['id'])->update($params); echo $obj->check_last_query(); }
function populate() { $obj = new Websetting(); $obj->get(); return $obj; }
function websetting() { $this->check_login(); $objs = new Websetting(); $objs->get(); $data = array('objs' => $objs); $this->load->view('admin/websetting', $data); }