Assign a generic value to any Smarty variable possible ?
| From: | Luc Saint-Elie | Date: | Mon, 07 Apr 2003 19:29:53 +0000 |
| Subject: | Assign a generic value to any Smarty variable possible ? | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9177@lists.php.net to get a copy of this message | ||
Hello,
Is there a way to write a Smarty call that says :
"Whatever Smarty variable you find in the template (*.tpl file) assign it the value $genericvalue" ?
I know this question could seem strange but I'm writing something that will allow the user to preview the result (design) of a template, but at the time of the preview, the template's real content has not yet been defined.
I could force the user to declare the variables he used in the template, but I'd find more elegant for preview to be able to place generic non-meaning text to whatever template variable as been set without asking the user.
Luc