public function actionKemasandelete($id) { $model = Kemasan::findOne($id)->delete(); $this->layout = $this->CheckSession(); return $this->redirect(['warehouse/kemasanindex']); }