<div class="zakaz-update">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
<div class="zakaz-create">
<h1><?= Html::encode($this->title) ?></h1>
<?= $this->render('_form', [
'model' => $model,
]) ?>
</div>
if ($model->load(Yii::$app->request->post()) && $model->login()) {
$id_user = Yii::$app->user->identity->getId();
return $this->redirect(['zakaz/index', 'id'=> $id_user]);
} else {
return $this->render('login', [
'model' => $model,
]);
}
}
[
'attribute' => 'minut',
'format' => ['date', 'php:timestamp H:i']
],