mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
Moved recurring para for register_*
This commit is contained in:
@@ -5,9 +5,10 @@
|
|||||||
<para>
|
<para>
|
||||||
The <parameter>merge</parameter> parameter respects array keys, so if
|
The <parameter>merge</parameter> parameter respects array keys, so if
|
||||||
you merge two numerically indexed arrays, they may overwrite each other
|
you merge two numerically indexed arrays, they may overwrite each other
|
||||||
or result in non-sequential keys. This is unlike the
|
or result in non-sequential keys. This is unlike the PHP
|
||||||
<ulink url="&url.php-manual;array_merge">array_merge()</ulink> function
|
<ulink url="&url.php-manual;array_merge">
|
||||||
of PHP which wipes out numerical keys and renumbers them.
|
<varname>array_merge()</varname></ulink> function
|
||||||
|
which wipes out numerical keys and renumbers them.
|
||||||
</para>
|
</para>
|
||||||
</note>'>
|
</note>'>
|
||||||
|
|
||||||
@@ -18,11 +19,36 @@
|
|||||||
the same template, such as having separate templates compiled
|
the same template, such as having separate templates compiled
|
||||||
for different languages. Another use for
|
for different languages. Another use for
|
||||||
<parameter>$compile_id</parameter> is when you use more than one
|
<parameter>$compile_id</parameter> is when you use more than one
|
||||||
<link linkend="variable.template.dir">$template_dir</link>
|
<link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>
|
||||||
but only one <link linkend="variable.compile.dir">$compile_dir</link>.
|
but only one
|
||||||
|
<link linkend="variable.compile.dir"><parameter>$compile_dir</parameter></link>.
|
||||||
Set a separate <parameter>$compile_id</parameter> for each
|
Set a separate <parameter>$compile_id</parameter> for each
|
||||||
<link linkend="variable.template.dir">$template_dir</link>, otherwise
|
<link linkend="variable.template.dir"><parameter>$template_dir</parameter></link>,
|
||||||
templates of the same name will overwrite each other. You can
|
otherwise templates of the same name will overwrite each other. You can
|
||||||
also set the <link linkend="variable.compile.id">$compile_id</link>
|
also set the <link linkend="variable.compile.id">
|
||||||
variable once instead of passing this to each call to this function.
|
<parameter>$compile_id</parameter></link> variable once instead of passing
|
||||||
|
this to each call to this function.
|
||||||
</para>'>
|
</para>'>
|
||||||
|
|
||||||
|
<!ENTITY api.register.snippet '<para>
|
||||||
|
The php-function callback <parameter>function</parameter> can be either:
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem><para>
|
||||||
|
A string containing the function <parameter>name</parameter>
|
||||||
|
</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>
|
||||||
|
An array of the form <literal>array(&$object, $method)</literal> with
|
||||||
|
<literal>&$object</literal> being a reference to an
|
||||||
|
object and <literal>$method</literal> being a string
|
||||||
|
containing the method-name
|
||||||
|
</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>
|
||||||
|
An array of the form
|
||||||
|
<literal>array(&$class, $method)</literal> with
|
||||||
|
<literal>$class</literal> being the class name and
|
||||||
|
<literal>$method</literal> being a method of the class.
|
||||||
|
</para></listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</para>'>
|
Reference in New Issue
Block a user