user card sort
This commit is contained in:
@ -152,7 +152,9 @@ class UserCardController extends Controller
|
||||
public function actionUpdate($id)
|
||||
{
|
||||
$model = $this->findModel($id);
|
||||
if ($model->load(Yii::$app->request->post()) && $model->save()) {
|
||||
if ($model->load(Yii::$app->request->post())) {
|
||||
$model->updated_at = date('Y-m-d h:i:s');
|
||||
$model->save();
|
||||
return $this->redirect(['view', 'id' => $model->id]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user