$model = new MatrixType();
if ($model->load(Yii::$app->request->post()) && $model->save()) {
- return $this->redirect(['view', 'id' => $model->id]);
+ return $this->redirect(['index']);
}
return $this->render('create', [
$model = $this->findModel($id);
if ($model->load(Yii::$app->request->post()) && $model->save()) {
- return $this->redirect(['view', 'id' => $model->id]);
+ return $this->redirect(['index']);
}
return $this->render('update', [
'updated_at',
[
'class' => 'yii\grid\ActionColumn',
- 'template' => '{view} {update} {delete}',
+ 'template' => '{update} {delete}',
],
],
]); ?>