modules/api/v1/controllers/BlockUserController.php
/**
     * Deletes an existing BlockUser 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 BlockUser 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 BlockUser 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)
    {
        $model = BlockUser::findOne($id);
        if (!$model instanceof BlockUser) {
            throw new NotFoundHttpException('Blocked user doesn\'t exist.');
        }
        $model->delete();
    }
public function actionDelete ( $ id ) { $ model = BlockUser :: findOne ( $ id ) ; if ( ! $ model instanceof BlockUser ) { throw new NotFoundHttpException ( 'Blocked user doesn\'t exist.' ) ; } $ model -> delete ( ) ; }
Deletes an existing BlockUser model.
Deletes an existing BlockUser model .