##// END OF EJS Templates
revisando y reduciendo codigo del controlador y del modelo
arturo -
r1:2
parent child
Show More
@@ -608,17 +608,20
608 608 } No newline at end of file
609 609 No newline at end of file
610 610 public function updateUser(){
611 No newline at end of file
611 require 'models/UsersModel.php';
No newline at end of file
612 No newline at end of file
612
No newline at end of file
613 No newline at end of file
613 $user = new UsersModel();
No newline at end of file
614 No newline at end of file
614 $iduser = $_REQUEST['iduser'];
No newline at end of file
615 No newline at end of file
615 $firstname = $_REQUEST['firstname'];
No newline at end of file
616 No newline at end of file
616 $lastname = $_REQUEST['lastname'];
No newline at end of file
617 No newline at end of file
617 $state = $_REQUEST['state'];
No newline at end of file
618 No newline at end of file
618 $edituser = $user->updateUser($iduser, $firstname, $lastname, $state);
No newline at end of file
619 No newline at end of file
619
No newline at end of file
620 No newline at end of file
620 $data['url'] = '?controller=Users&action=getUsers';
No newline at end of file
621 No newline at end of file
621 $this->view->show("actualizar.php", $data); No newline at end of file
No newline at end of file
622 $url = 'index.php?option=com_users&controller=Users&action=dolist';
No newline at end of file
623 header("location: ".$url);
No newline at end of file
624 exit(); No newline at end of file
622 625 } No newline at end of file
623 626 No newline at end of file
624 627 public function remove(){ No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now