function update() { $params = $this->input->post(); $obj = new Websetting(); $obj->where('id', $params['id'])->update($params); echo $obj->check_last_query(); }
function getuser($id) { $obj = new Websetting(); $obj->where('id', $id)->get(); return $obj; }