<?php
public function actionDelete()
{
if(Yii::app()->request->isPostRequest)
{
// we only allow deletion via POST request
$this->loadUser()->delete();
$this->redirect(array('list'));
Yii::app()->user->setFlash('succes', 'Gebruiker is verwijderd!');
}
else
throw new CHttpException(500,'Invalid request. Please do not repeat this request again.');
}
?>
Deleting works, but I don't get my flash message. I think the redirect is causing this.
Anyone knows a solution to this, or is this a bug?