[SMARTY] {assign_by_ref} or sth. similar in a temp late
Ben <[email protected]> Thu, 1 Nov 2007 11:38:19 +0100
| Newsgroups | gmane.comp.php.smarty.general |
|---|---|
| Message-ID | <02e4103b96e17a70c94c4a8d281b4af5@localhost> |
--=_a7d036b81d409b105649e88bd387ac1c
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
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
--=_a7d036b81d409b105649e88bd387ac1c--