get vars

From: Date: Mon, 27 Jan 2003 22:21:10 +0000
Subject: get vars
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7354@lists.php.net to get a copy of this message
Hi! I have some problems and i don't know how to solve it. I have some template file with some variables in it. Let say about four. How can i list those variables in php before i assign any variables to this. What is my point here. I would like to get a list of some special vars to wich i want to assine some content. This content is output of some modules. So if in some page i want to show only 3 of the modules I want to know which one from template. No I do this executing all of the modules and assign content to variables and then if smarty found same vars for some module it assign it or else not. So this is some overhead it think. If I know which one to show i can run only those modules. My first solution was that i make my own tag like this <tag>list,of,that,vars</tag> and then in php i parse it with regexp to get this list. Is there any better wat to acomplish and i hope you understand my problem. -- bye, Uros mailto:uros.gruber@sir-mag.com

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