You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can not update user status when I use the actionUpdate controller, Nothing happend and status not changed after I submit the form. I think I have to add a setAttribute in the controller or something else, because load($_post) is not update the $model->status. What can I do that ?? Am I missing something ??
By the way I added the auth role code in your update and create controllers, because I could not find a class for that in your module as shown below. Is it the right way to do this ??
Regards,
public function actionUpdate($id){
$model = $this->findModel($id);
if ($model->load($_POST) && $model->save()) {
/*Auth Role save*/
$authManager=new DbManager;
/*Control Role Type if exists assign*/
$sonuc = $authManager->getRole($_POST['User']['role']);
if($sonuc!==null)
{
$authManager->revokeAll($model->id);
$authManager->assign($sonuc,$model->id);
}
return $this->redirect(['view', 'id' => $model->id]);
} else {
return $this->render('update', [
'model' => $model,
]);
}
}
The text was updated successfully, but these errors were encountered:
Hello,
Thanx for great module.
I can not update user status when I use the actionUpdate controller, Nothing happend and status not changed after I submit the form. I think I have to add a setAttribute in the controller or something else, because load($_post) is not update the $model->status. What can I do that ?? Am I missing something ??
By the way I added the auth role code in your update and create controllers, because I could not find a class for that in your module as shown below. Is it the right way to do this ??
Regards,
public function actionUpdate($id){
The text was updated successfully, but these errors were encountered: