mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
another entity
This commit is contained in:
@@ -9,3 +9,16 @@
|
|||||||
of PHP which wipes out numerical keys and renumbers them.
|
of PHP which wipes out numerical keys and renumbers them.
|
||||||
</para>
|
</para>
|
||||||
</note>'>
|
</note>'>
|
||||||
|
|
||||||
|
<!ENTITY parameter.compileid '<para>
|
||||||
|
As an optional third parameter, you can pass a <parameter>compile_id</parameter>.
|
||||||
|
This is in the event that you want to compile different versions of
|
||||||
|
the same template, such as having separate templates compiled
|
||||||
|
for different languages. Another use for compile_id is when you
|
||||||
|
use more than one $template_dir but only one $compile_dir. Set
|
||||||
|
a separate <parameter>compile_id</parameter> for each $template_dir, otherwise
|
||||||
|
templates of the same name will overwrite each other. You can
|
||||||
|
also set the <link
|
||||||
|
linkend="variable.compile.id">$compile_id</link> variable once
|
||||||
|
instead of passing this to each call to this function.
|
||||||
|
</para>'>
|
||||||
|
@@ -20,17 +20,7 @@
|
|||||||
cache id. See the <link linkend="caching">caching
|
cache id. See the <link linkend="caching">caching
|
||||||
section</link> for more information.
|
section</link> for more information.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
¶meter.compileid;
|
||||||
As an optional third parameter, you can pass a compile id. This
|
|
||||||
is in the event that you want to compile different versions of
|
|
||||||
the same template, such as having separate templates compiled
|
|
||||||
for different languages. Another use for compile_id is when you
|
|
||||||
use more than one $template_dir but only one $compile_dir. Set
|
|
||||||
a separate compile_id for each $template_dir, otherwise
|
|
||||||
templates of the same name will overwrite each other. You can
|
|
||||||
also set the <link linkend="variable.compile.id">$compile_id</link>
|
|
||||||
variable once instead of passing this to each call to display().
|
|
||||||
</para>
|
|
||||||
<example>
|
<example>
|
||||||
<title>display</title>
|
<title>display</title>
|
||||||
<programlisting role="php">
|
<programlisting role="php">
|
||||||
|
@@ -21,18 +21,7 @@
|
|||||||
cache id. See the <link linkend="caching">caching
|
cache id. See the <link linkend="caching">caching
|
||||||
section</link> for more information.
|
section</link> for more information.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
¶meter.compileid;
|
||||||
As an optional third parameter, you can pass a compile id. This
|
|
||||||
is in the event that you want to compile different versions of
|
|
||||||
the same template, such as having separate templates compiled
|
|
||||||
for different languages. Another use for compile_id is when you
|
|
||||||
use more than one $template_dir but only one $compile_dir. Set
|
|
||||||
a separate compile_id for each $template_dir, otherwise
|
|
||||||
templates of the same name will overwrite each other. You can
|
|
||||||
also set the <link
|
|
||||||
linkend="variable.compile.id">$compile_id</link> variable once
|
|
||||||
instead of passing this to each call to fetch().
|
|
||||||
</para>
|
|
||||||
<para>
|
<para>
|
||||||
<example>
|
<example>
|
||||||
<title>fetch</title>
|
<title>fetch</title>
|
||||||
|
Reference in New Issue
Block a user