add account model + crud ( kassza )
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user