small fixes

This commit is contained in:
2015-09-21 09:36:44 +02:00
parent b68c2dd20b
commit 8890727862
7 changed files with 20 additions and 22 deletions

View File

@@ -92,18 +92,6 @@ class DiscountController extends Controller
}
}
/**
* Deletes an existing Discount model.
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id
* @return mixed
*/
public function actionDelete($id)
{
$this->findModel($id)->delete();
return $this->redirect(['index']);
}
/**
* Finds the Discount model based on its primary key value.