本文整理匯總了PHP中Model_Users::updateUser方法的典型用法代碼示例。如果您正苦於以下問題:PHP Model_Users::updateUser方法的具體用法?PHP Model_Users::updateUser怎麽用?PHP Model_Users::updateUser使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Model_Users
的用法示例。
在下文中一共展示了Model_Users::updateUser方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: accountAction
public function accountAction()
{
$lecturer_id = $this->sessionGlobal->lecturer_id;
$user = new Model_Users();
$findUser = $user->findOneUser($lecturer_id);
$this->view->findUser = $findUser;
if ($this->_request->isPost()) {
$data = $this->_getParam('searchParam');
$user->updateUser($data);
echo "Thành công";
header("Refresh:0");
}
}
示例2: updateAction
public function updateAction()
{
$user_id = $_GET['user_id'];
$user = new Model_Users();
$listlecturer = $user->findLecturer();
$this->view->listlecturer = $listlecturer;
$listRole = $user->findRole();
$this->view->listRole = $listRole;
$dataUserByID = $user->findUserRole($user_id);
$this->view->dataUserByID = $dataUserByID;
if ($this->_request->isPost()) {
$data = $this->_getParam('searchParam');
$role_id = $data['role_id'];
$user->updateUser($user_id, $data);
$user->updateUserRole($user_id, $role_id);
$this->redirect('giaovu/user/list');
}
}
示例3: profiluser
/**
* Fonction du profil du membre
* @param Int $id_users Id de l'user
*/
public function profiluser($id_users)
{
$users = new Model_Users();
if (!empty($_POST['id_users'])) {
$id_users = $_POST['id_users'];
$pseudo_new = $_POST['pseudo_new'];
$nom_new = $_POST['nom_new'];
$prenom_new = $_POST['prenom_new'];
$adresse_new = $_POST['adresse_new'];
$code_postal_new = $_POST['code_postal_new'];
$users->updateUser($pseudo_new, $nom_new, $prenom_new, $adresse_new, $code_postal_new, $id_users);
}
$profilUser = $users->profilUsers($id_users);
require_once $_SERVER['DOCUMENT_ROOT'] . "/ecommerce/views/users/profil.php";
}