controllers/MedicamentosController.php
/**
     * Deletes an existing Medicamentos model.
     * If deletion is successful, the browser will be redirected to the 'index' page.
     * @param integer $id
     * @return mixed
     * @throws NotFoundHttpException if the model cannot be found
     */
Deletes an existing Medicamentos model.
If deletion is successful, the browser will be redirected to the 'index' page.
@param integer $id
@return mixed
@throws NotFoundHttpException if the model cannot be found
Deletes an existing Medicamentos model . If deletion is successful the browser will be redirected to the ' index ' page . @param integer $id @return mixed @throws NotFoundHttpException if the model cannot be found
public function actionDeleteEventual($id)
    {
        $this->findModelEventual($id)->delete();
        return $this->redirect(['eventual']);
    }
public function actionDeleteEventual ( $ id ) { $ this -> findModelEventual ( $ id ) -> delete ( ) ; return $ this -> redirect ( [ 'eventual' ] ) ; }
Deletes an existing Medicamentos model.
Deletes an existing Medicamentos model .
//\Yii::$app->session->setFlash('success', 'Medicamento eliminado correctamente');