vars from templates structure
| From: | Juri Smarschevski | Date: | Thu, 21 Nov 2002 17:34:59 +0000 |
| Subject: | vars from templates structure | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6494@lists.php.net to get a copy of this message | ||
hi list,
there is a sample templates structure:
[aaa.tpl]
<HTML>
<TITLE>Hello</TITLE>
<BODY>
Hello from aaa, {$A}!<br>
{include file="bbb.tpl"}
</BODY>
</HTML>
[bbb.tpl]
Hello from bbb, {$B}!
[php-file]
/*
detect all tpl vars beginning from aaa.tpl
do dynamically assign (value to var)
*/
$smarty->display("aaa.tpl");
Is't possible in the php-file to detect all templates variables
(inclusive included templates)? That means I get an array or
something similar which in this case includes strings "A" and "B".
The function "get_template_vars" analyses assigns in the php files,
note in templates. I need it "reversed" ;-).
thx in advance and kind regards,
juri