For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > September 2004 > Re: [SMARTY] $smarty->assign problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] $smarty->assign problem
Boots

2004-09-14, 3:57 am

--- 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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com