Re: Smarty global variables

From: Date: Thu, 30 May 2002 01:54:08 +0000
Subject: Re: Smarty global variables
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4445@lists.php.net to get a copy of this message
that would technically work, but I think my situation would require them to reside in memory somewhere.. here is what i'm doing. i have a form that spans 4 pages. a person creates an account, creates an ad, previews the ad, and then 'checks out' writing the files to a database. I'm using php sessions to hold my data for each user until the form is completed. here is how i'm assigning my variables: $smarty->assign('adtitle', $_SESSION[adtitle]); $smarty->assign('exp', $_SESSION[exp]); $smarty->assign('description', $_SESSION[description]); etc... the problem is that I have a good many variables and I have to repeat this for each page of the form, which, i'm sure, isn't the best way to use system resources. I was reading the manual, but the description for the $global_assign variable is less than clear. What is the $global_assign variable used for if not to access assigned smarty variables accross templates? thanks again, blue

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