Re: [PHPTAL] How to disable rendered output when exception is thrown

2009-10-29 Thread Nestor A. Diaz
thanks, that fixed the problem. i was attempting to tweak PHPTAL code and i was wrong, is just as simple as put an ob_start() at the begining of try bracket and a ob_end_flush() at the begining of the catch exception. Slds. Iván Montes wrote: Check PHP's ob_* functions, they allow to capt

Re: [PHPTAL] How to disable rendered output when exception is thrown

2009-10-28 Thread Kornel Lesiński
On 28.10.2009, at 22:53, Nestor A. Diaz wrote: Hello, i want to know if there is any possibility to disable the output of the rendering template when an exception occurs, right now processing stop if there is any exception but the page is shown until the error was made, i use the execute m

Re: [PHPTAL] How to disable rendered output when exception is thrown

2009-10-28 Thread Iván Montes
Check PHP's ob_* functions, they allow to capture what is being send to the browser allowing to either get back the result, echoing it all together or discarding it. /imv On 10/28/09 11:53 PM, Nestor A. Diaz wrote: Hello, i want to know if there is any possibility to disable the output of the

[PHPTAL] How to disable rendered output when exception is thrown

2009-10-28 Thread Nestor A. Diaz
Hello, i want to know if there is any possibility to disable the output of the rendering template when an exception occurs, right now processing stop if there is any exception but the page is shown until the error was made, i use the execute method, not the echoExecute, which is supposed not to