Debugging custom template resource
| From: | Marcus Bointon | Date: | Sun, 23 Oct 2005 20:53:26 +0000 |
| Subject: | Debugging custom template resource | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-13115@lists.php.net to get a copy of this message | ||
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
--
Marcus Bointon
Synchromedia Limited: Putting you in the picture
marcus@synchromedia.co.uk | http://www.synchromedia.co.uk