|
[SMARTY] get vars: msg#00379php.smarty.general
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@xxxxxxxxxxx -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [SMARTY] Internationalization: 00379, Monte Ohrt |
|---|---|
| Next by Date: | Re: [SMARTY] Internationalization: 00379, Nichlas Löfdahl |
| Previous by Thread: | [SMARTY] foreach and multidimensional arraysi: 00379, m guckeyson |
| Next by Thread: | [SMARTY] assoc array keys with invalid characters?: 00379, larry osborn |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |