modules/admin/controllers/ColorController.php
/**
     * Deletes an existing Color 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 Color 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 Color 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 actionDelete($id)
    {
        $this->findModel($id)->delete();
        \Yii::$app->getSession()->setFlash(Growl::TYPE_SUCCESS, 'Color deleted successfully.');
        return $this->redirect(['index']);
    }
public function actionDelete ( $ id ) { $ this -> findModel ( $ id ) -> delete ( ) ; \ Yii :: $ app -> getSession ( ) -> setFlash ( Growl :: TYPE_SUCCESS , 'Color deleted successfully.' ) ; return $ this -> redirect ( [ 'index' ] ) ; }
Deletes an existing Color model.
Deletes an existing Color model .