mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
added explanation of variables' scope within {include}
This commit is contained in:
@@ -14,7 +14,13 @@
|
|||||||
{include} will be assigned to instead of
|
{include} will be assigned to instead of
|
||||||
displayed.
|
displayed.
|
||||||
</para>
|
</para>
|
||||||
|
<para>
|
||||||
|
All assigned variables' values are restored after the scope of the
|
||||||
|
included template is left. This means you can use all variables from
|
||||||
|
the including template inside the included template. But changes to
|
||||||
|
variables inside the included template are not visible inside the
|
||||||
|
including template after the {include} statement.
|
||||||
|
</para>
|
||||||
<informaltable frame="all">
|
<informaltable frame="all">
|
||||||
<tgroup cols="5">
|
<tgroup cols="5">
|
||||||
<colspec colname="param" align="center" />
|
<colspec colname="param" align="center" />
|
||||||
|
Reference in New Issue
Block a user