Re: [SMARTY] Smarty does not report errors

From: Date: Tue, 08 Mar 2005 03:56:35 +0000
Subject: Re: [SMARTY] Smarty does not report errors
References: 1 2 3 4 5  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12304@lists.php.net to get a copy of this message
Smarty does not yet throw exceptions as that would raise the compatibility bar up from php4 to php5. On Mon, 7 Mar 2005 21:29:03 -0500, Pedro Vera <pedro.vera@gmail.com> wrote: > I just tried a try/catch block but it did not report the error :-( > > Pedro > > On Tue, 08 Mar 2005 12:14:54 +1000, Mark Watkins > <jedimark@geekdom.com.au> wrote: > > I am also interested in Smarty error handling issues.. > > > > what about > > try {$smarty->display("template"); } catch {} blocks? Or doesn't smarty > > throw any exceptions round the place..? > > > > A function to preprocess a template that checks for missing tags, etc, > > and returns a true or false would probably also be a good thing. > > Wouldn't exactly be fast, but would be handy to test it before checking > > a template into a database. > > > > At OnError callback would probably be a good feature to add to smarty. > > > > / Mark Watkins > > > > Pedro Vera wrote: > > > > >I got Smarty 2.6.7 working fine, and it does everything I want it to > > >except one thing: errors. > > > > > >Whenever I do something wrong in a template, all I get is a blank > > >page. PHP errors are reported as I expect them, but no errors are > > >being reported if the issue is due to a template. Also, the debug tag > > >won't work if there is an error in the template. > > > > > >Any ideas? > > > > > >Pedro Vera > > >http://veraperez.com > > > > > > > > > > > > > -- > > Smarty General Mailing List (http://smarty.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > > > > -- > Pedro Vera > http://veraperez.com > PGP/GPG Public Key: B21A55FA > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Xnyo - http://xnyo.odynia.org/

« previous php.smarty.general (#12304) next »