add inventory changes

This commit is contained in:
2016-03-23 08:15:37 +01:00
parent 7db129de92
commit e7b16f20ce
15 changed files with 413 additions and 62 deletions

View File

@@ -86,12 +86,12 @@ class InventoryController extends Controller
$model->id_user = \Yii::$app->user->id;
if ($model->load(Yii::$app->request->post()) && $model->save()) {
return $this->redirect(['view', 'id' => $model->id_inventory]);
// return $this->redirect(['view', 'id' => $model->id_inventory]);
} else {
}
return $this->render('create', [
'model' => $model,
]);
}
}
/**