Re: [SMARTY] Smarty does not report errors

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


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