Page 1 of 1

smarty string matching problem - urgent plz help

Posted: Tue Apr 13, 2004 2:47 am
by gaurav_sting
hello everyone,

i am stuck in a very peculiar situation,

In my php script i am assigning a variable like this:

smarty->assign("message","true");

now in my template file whenevery i write this:

{if $message eq "true"}
Welcome
{/if}

the above code gives me the following error:
Fatal error: Smarty error: [in show_cart.tpl line 26]: syntax error: unidentified token '\"Your\"' (Smarty_Compiler.class.php, line 1357) in C:\Inetpub\wwwroot\Book_Store\libs\Smarty.class.php on line 1102

Kindly help.
Gaurav

Posted: Tue Apr 13, 2004 11:52 am
by TheBentinel.com
I don't know anything about smarty, but it looks like $message is picking up some error value like "Your value is out of range" or something like that. Is there any way to verify the value of $message, like display it or something?