public function actionDelete($id) { $consignment = ConsignmentModel::readById($id); $consignment->delete(); header('Location: /consignment/read'); }