Assigned variables from {included}'ed templates
| From: | Serge | Date: | Wed, 26 Feb 2003 07:07:34 +0000 |
| Subject: | Assigned variables from {included}'ed templates | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-8207@lists.php.net to get a copy of this message | ||
Hello fellow Smarty users,
I have two seperate template files, which look similar to this:
[main.tpl]
<!-- some HTML stuff here -->
{include file="other.tpl"}
{$test}
<!-- some more HTML stuff here -->
[other.tpl]
<!-- some HTML stuff here -->
{assign var="test" value="Testing"}
---------------------------------------------------
What's I'm wondering is this, why am I not able to access the variable
assigned inside the included template file (other.tpl) from the main
template (mail.tpl)?
Thanks for any help.