[symfony-users] return redirect() breaks the code ?

2010-03-30 Thread NOOVEO - Christophe Brun
I want to catch some exceptions in my actions and to display nice and informative messages for my users. class utilisateursActions extends autoUtilisateursActions { public function executeDelete(sfWebRequest $request) { try { // do stuff...

Re: [symfony-users] return redirect() breaks the code ?

2010-03-30 Thread Gábor Fási
Calling redirect() throws an sfStopException [1] to stop the execution, as it is not needed anymore after you have redirected. http://trac.symfony-project.org/browser/branches/1.4/lib/action/sfAction.class.php#L204 On Tue, Mar 30, 2010 at 17:14, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote:

Re: [symfony-users] return redirect() breaks the code ?

2010-03-30 Thread Rafael Barbosa
The very last thing the redirect() method does is throw a sfStopException that's why it goes all the way through try AND catch. On Tue, Mar 30, 2010 at 12:14 PM, NOOVEO - Christophe Brun c.b...@nooveo.fr wrote: I want to catch some exceptions in my actions and to display nice and informative