Mika wrote:
> This is exactly why I asked the question in the first place.
>
> I see that exit() seems to be recommended all over the place, but
> people should realise that it will stop the flow of cake totally at
> that spot. This is usually not a problem, as Nate said, but if you've
> set some callbacks or something it could be. Just because you're
> redirecting does not mean you don't want the code to finish.
>
> For example what if you've got some logging going on or something after
> an action. On exit this code would never get executed.
>
> So in other words, exit() is not any better or worse than return but
> people should just understand the consequences.

Exactly.  Well put.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to