Re: [SMARTY] Smarty does not report errors

From: Date: Tue, 08 Mar 2005 02:29:03 +0000
Subject: Re: [SMARTY] Smarty does not report errors
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12303@lists.php.net to get a copy of this message
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

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