{assign_by_ref} or sth. similar in a temp late
| From: | Ben | Date: | Thu, 01 Nov 2007 10:38:19 +0000 |
| Subject: | {assign_by_ref} or sth. similar in a temp late | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-13791@lists.php.net to get a copy of this message | ||
Hi folks,
sorry for the maybe misleading subject. My problem is, I want to
display a variable in a template, that's value
is assigned later in the template, e.g.
{$mytext}
{include file="test.tpl}
test.tpl contains anywhere
{assign var="mytext" value="sometexthere"}
but this does not work, with a test to add {$mytext} behind the
assignline, show, that the vriable only exists after the assignment.
so the question is is there something like a assign_by_ref inside
the template, where the var is assigned before it gets filled with
the real content
and filled with the real content later?
thx
Ben