Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function update() {
- if($this->input->server('REQUEST_METHOD')== 'POST'){
- $id_user = $this->input->post('id_user');
- $nama = $this->input->post('nama');
- $nama_lengkap = $this->input->post('nama_lengkap');
- $email = $this->input->post('email');
- $ubah = $this->user_model->ubah_mahasiswa($id_user, $nama, $nama_lengkap, $email);
- if($ubah == FALSE){
- $array = array(
- 'title' => 'Daftar User',
- 'content' => $this->load->view('template_admin/error','',true),
- 'footer' => $this->load->view('template_admin/footer','',true));
- $this->load->view('template_admin/home', $array);
- }else{
- $array = array(
- 'title' => 'Daftar User',
- 'content' => $this->load->view('template_admin/sukses',$ubah,true),
- 'footer' => $this->load->view('template_admin/footer','',true));
- $this->load->view('template_admin/home', $array);
- }
- }else {
- printf('direct access is not allowed');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment