Re: Debugging custom template resource

From: Date: Mon, 24 Oct 2005 10:49:06 +0000
Subject: Re: Debugging custom template resource
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-13116@lists.php.net to get a copy of this message
try switching error_reporting(E_ALL) use {debug} tags withing a template Switch off buffering and caching in the testing.production stage Pete Marcus Bointon wrote:
I have several custom template resources and I'm having some trouble with one of them. I've confirmed that it is definitely getting the contents of the template, but between returning the template source to smarty and then getting the rendered output back to the original fetch call, it's breaking, but I can't get any error messages out. It could well be an invalid template, but I'm not getting any kind of output at all - everything just stops. You can't log to normal output from a template resource function because it's output buffered (and all output appears in the rendered template), but logging to a file is working ok. Any ideas for finding the problem or persuading Smarty to generate more debug output (debugging = true doesn't help)? Marcus


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