no template syntax errors shown with debugging_ctrl?
| From: | Lance E Sloan | Date: | Thu, 29 Jul 2004 16:44:29 +0000 |
| Subject: | no template syntax errors shown with debugging_ctrl? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-11645@lists.php.net to get a copy of this message | ||
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.
However, instead of setting $debugging, if I set $debugging_ctrl to 'URL', I can't get Smarty to tell me about those syntax errors. I just get the blank page as before. It doesn't matter if I add "?SMARTY_DEBUG" to the end of my URLs or if I've used "?SMARTY_DEBUG=on" at some earlier point to set the debugging cookie. I know that debugging with $debugging_ctrl is working otherwise, because if I tell Smarty to parse a template that doesn't have a syntax error in it, Smarty will show me other warnings and the console window will pop open.
Is anybody else having this trouble? If the majority of responses to this message say no, then I'll take another look at how I'm using Smarty. I could be doing something wrong. But I'm wondering if there's some bug in Smarty where it doesn't look for "SMARTY_DEBUG" in the request or the debugging cookie until after it parses the template.
--
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"