smarty string matching problem - urgent plz help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
gaurav_sting
Forum Newbie
Posts: 19
Joined: Sat Mar 27, 2004 3:45 am
Location: Delhi

smarty string matching problem - urgent plz help

Post 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
TheBentinel.com
Forum Contributor
Posts: 282
Joined: Wed Mar 10, 2004 1:52 pm
Location: Columbus, Ohio

Post 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?
Post Reply