Re: [SMARTY] Weird syntax error

From: Date: Tue, 10 Jun 2003 15:28:30 +0000
Subject: Re: [SMARTY] Weird syntax error
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9692@lists.php.net to get a copy of this message
Try using {if $on_overview == "Y"} to see if that solves the problem. It works for me pete uncan Hill wrote:
On Tuesday 10 June 2003 13:59, Duncan Hill wrote:
Greetings, Been playing with Smarty, and liking what I see. However, I've now run into a weird issue that is really annoying me.
Fatal error: Smarty: [in menu.tpl line 4]: syntax error: unidentified token '\"Y\"' (Smarty_Compiler.class.php, line 1228) in /usr/local/php4/lib/smarty/Smarty_Compiler.class.php on line 1824
I've limited the templates down to just those lines, and the issue persists. What on earth is biting me? Smarty 2.5.0, PHP 4.3.1.
Well, it's one of those days. Nuked templates_c/*, and ALL of my templates that use the variable test logic fail. Bolt from the sky, and I go and turn off magic_quotes_runtime, and all is well. The template caching was stopping me from seeing the problem. Now, searching google, smarty.php.net and more all returned nothing on this issue.. is it a known behaviour?


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