add account model + crud ( kassza )

This commit is contained in:
2015-09-20 22:02:02 +02:00
parent 5e1835dff5
commit 6163163b1c
16 changed files with 707 additions and 7 deletions

View File

@@ -97,15 +97,15 @@ class WarehouseController extends Controller
* @param integer $id
* @return mixed
*/
public function actionDelete($id)
{
$warehouse = $this->findModel($id);
// public function actionDelete($id)
// {
// $warehouse = $this->findModel($id);
$warehouse->updateAttributes(['status' => Warehouse::STATUS_DELETED]);
// $warehouse->updateAttributes(['status' => Warehouse::STATUS_DELETED]);
return $this->redirect(['index']);
}
// return $this->redirect(['index']);
// }
/**
* Finds the Warehouse model based on its primary key value.