controllers/IssueController.php
/**
     * Deletes an existing issue model.
     * If deletion is successful, the browser will be redirected to the 'index' page.
     * @param integer $id
     * @return mixed
     */
Deletes an existing issue model.
If deletion is successful, the browser will be redirected to the 'index' page.
@param integer $id
@return mixed
Deletes an existing issue model . If deletion is successful the browser will be redirected to the ' index ' page . @param integer $id @return mixed
public function actionDelete($id)
    {
    	if (\Yii::$app->user->isGuest) {
            return $this->redirect('/propensi/web');
        }
        $this->findModel($id)->delete();
        return $this->redirect(['index']);
    }
public function actionDelete ( $ id ) { if ( \ Yii :: $ app -> user -> isGuest ) { return $ this -> redirect ( '/propensi/web' ) ; } $ this -> findModel ( $ id ) -> delete ( ) ; return $ this -> redirect ( [ 'index' ] ) ; }
Deletes an existing issue model.
Deletes an existing issue model .