[SMARTY] Re: Debugging custom template resource

Pedro <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
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

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.