Fwd: Re: no template syntax errors shown with debugging_ctrl?

From: Date: Mon, 02 Aug 2004 18:10:22 +0000
Subject: Fwd: Re: no template syntax errors shown with debugging_ctrl?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11656@lists.php.net to get a copy of this message
[I meant to CC the list on this message...] Date: Friday, July 30, 2004 12:56 PM -0400 From: Lance E Sloan <lsloan-000002@umich.edu> Strangely enough, this didn't help in the case I'm looking at. I'm trying to debug somebody else's code and I think they've done something that interferes with the debugging mechanism. It was worth the try, though. It would be *nice* if the Smarty display method would return some value indicating success or failure, and what kind of failure. Hmm... I think that maybe I should try the fetch method instead. I could do a fetch, if there's no output, turn on debugging and fetch again. --On Thursday, July 29, 2004 1:46 PM -0700 Prarie Blake <prarie@gmail.com> wrote:
I'm pretty sure that's why when debugging is on, the error messages show. It must override the error_reporting... but I don't ever use debugging so... On Thu, 29 Jul 2004 16:22:29 -0400, Lance E Sloan <lsloan@umich.edu> wrote:
Prarie, Thanks. I will look into that. I notice that the manual says this value is ignored if debugging is enabled, though. I wonder if that applies to $debugging, $debugging_ctrl, or both. I'll send another message to the list later about my results ---------- Forwarded Message ---------- Date: Thursday, July 29, 2004 1:03 PM -0700 From: Prarie Blake <prarie@gmail.com> To: Lance E Sloan <lsloan-000002@umich.edu> Subject: Re: [SMARTY] no template syntax errors shown with debugging_ctrl? I believe it has to do with the error_reporting property of smarty. I had this problem as well, but adding a line at the top of the page like $smarty->error_reporting = E_ALL; fixed the issue and now I always get messages when the template has an error. The error_reporting level is the same as used by the PHP function of the same name. Prarie (It's the On Thu, 29 Jul 2004 12:44:29 -0400, Lance E Sloan <lsloan-000002@umich.edu> wrote:
I'm pretty new to Smarty and I'm running into trouble debugging templates. I've found that if I make a mistake (like a syntax error) in the template, absolutely *nothing* comes out of my program. I get a blank page. If I set $debugging to true, though, Smarty will tell me about the errors I've made.
-- Lance E Sloan, Systems Research Programmer III U-M WATS: Web Applications, Technologies, and Solutions Full-service web and database design, development, and hosting. http://www.itcs.umich.edu/wats/ - "Putting U on the Web"

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