Re: [PHPTAL] [bug]throw exception even if Context->__nothrow is true

2008-06-13 Thread Laurent Bedubourg
Kornel Lesinski wrote: On Thu, 12 Jun 2008 05:07:40 +0100, zou guangxian <[EMAIL PROTECTED]> wrote: After $tpl->getContext()->noThrow(true) was invoked Thanks for detailed report, but noThrow() isn't supposed to be used that way. getContext() method is only for use by macros and triggers a

RE: [PHPTAL] [bug]throw exception even if Context->__nothrow is true

2008-06-13 Thread zou guangxian
> If I remember well, there's a tal:on-error attribute to catch exceptions: > > http://phptal.motion-twin.com/manual/en/#tal-on-error > If I change play.html to [code] name age [/code] the output will be : [code] variables not defined here [/code] But I hope to get: [code] name [/c