Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function update($idUser) {
- $user = $this->UserModel->getByPrimaryKey($idUser);
- $data = array(
- "header" => "User",
- "page" => "content/user/v_update_user",
- "user" => $user
- );
- $this->load->view("layout/main", $data);
- }
- public function proses_update() {
- $id = $this->input->post("id");
- $user = array(
- "nama_user" => $this->input->post("nama"),
- "email_user" => $this->input->post("email"),
- "role_user" => $this->input->post("role"),
- );
- $this->UserModel->update($id, $user);
- redirect("user");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement