Hello all, I think I've found a bug but am unsure of the best way to fix it. When using the action function $this->sendEmail() and either sfSwift of sfMail throws an exception, you'll get a white screen. In watching the logs I could see that catching it within my function happened, and it said it was rendering the action and decorating with the layout, however the content sent was empty, nothing at all. the sendContent log file showed 0 bytes. So I dug a bit deeper, the issue comes from the fact that the sfController getPresentationFor() function gets 'hijacked' by the exception, and thus doesn't unroll the actions as it normally would. Placing a try/catch (where the catch simply logs the error and allows it to continue) then the action does eventually display its content.
Therefore the getPresentationFor function should place a try catch around the call $this->forward($module,$action); and within the catch block complete the stack unrolling and then perhaps re-throw the exception? -- Nathanael D. Noblet --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony developers" 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-devs?hl=en -~----------~----~----~----~------~----~------~--~---
