kurniaandi1

controller

Dec 31st, 2015
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. function quote()
  2. {
  3. $this->auth->restrict();
  4. // load model 'admin_model'
  5. $this->load->model('root_model');
  6. $id = $this->input->post('id_user');
  7. $data = array('User_Quote' => $this->input->post('quote')
  8. );
  9. $this->root_model->update_quote($id,$data);
  10.  
  11. redirect("root/user");
  12. }
Advertisement
Add Comment
Please, Sign In to add comment