Hi!

I have the following (simplified code):

try {

    //Code that might throw an exception
    $this->setFlash('action_ok', 'Success message');
    $this->redirect('@other_page');

}catch (Exception $e) {
    $this->setFlash('action_error', 'Error message');
}
//if Exception is caught, no need to redirect (redisplay a form)

When executing this code, the redirect works fine, but both action_ok and
action_error are set. This means that after redirecting, the code in the
catch-block is executed. Is this the expected behavior? It seems a bit odd
to me...

Regards, Gunnar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to