On Thu, May 15, 2008 at 07:49:14AM -0700, gunnarlium wrote:
> I guess there's a good explanation for why forward/redirect throws an
> exception. Care to provide a two-sentence briefing?

It interrupts the program flow, so you can do things like this:

     do_something();

     $this->forward404If(test_if_ok());

     do_something_more();

This way do_something_more() never executes if the action is 
forwarded.  If symfony doesn't interrupt, then do_something_more() 
will still execute even though it will never be used.

Carl

--~--~---------~--~----~------------~-------~--~----~
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