Re: [SMARTY] $smarty->assign problem

From: Date: Tue, 14 Sep 2004 01:35:18 +0000
Subject: Re: [SMARTY] $smarty->assign problem
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11806@lists.php.net to get a copy of this message
--- John Nichel <john@kegworks.com> wrote: > However, the $smarty->assign ( "foo", "bar" ); inside of > that first if statement does not do anything (it does echo out 'yes', > so I know the if statement is being executed). Hi. Your example should be working for you (particularly since you are getting confirmation that you are entering the if structure via the "yes" echo.) You can verify that the vars are being set by placing the following at the bottom of the code block: print_r( $smarty->get_template_vars() ); In other words, whatever problems you are experiencing, I doubt that it is caused by that assign statement. xo boots

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