Пример #1
0
 function update()
 {
     $params = $this->input->post();
     $obj = new Websetting();
     $obj->where('id', $params['id'])->update($params);
     echo $obj->check_last_query();
 }
Пример #2
0
 function getuser($id)
 {
     $obj = new Websetting();
     $obj->where('id', $id)->get();
     return $obj;
 }