mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 03:44:26 +02:00
tweek
This commit is contained in:
@@ -47,10 +47,12 @@
|
|||||||
linkend="variable.plugins.dir">$plugins_dir</link> (also see:
|
linkend="variable.plugins.dir">$plugins_dir</link> (also see:
|
||||||
<link linkend="plugins.naming.conventions">Naming
|
<link linkend="plugins.naming.conventions">Naming
|
||||||
Conventions</link>) or can be registered explicitely (see: <link
|
Conventions</link>) or can be registered explicitely (see: <link
|
||||||
linkend="api.register.modifier">register_modifier</link>). Additionally
|
linkend="api.register.modifier">register_modifier</link>).</para>
|
||||||
|
<para>
|
||||||
|
Additionally
|
||||||
all php-functions can be used as modifiers implicitly. (The
|
all php-functions can be used as modifiers implicitly. (The
|
||||||
<literal>@count</literal>-example above actually uses php's
|
<literal>@count</literal> example above actually uses php's
|
||||||
count-function and not a smarty-modifier). Using php-functions
|
count() function and not a smarty-modifier). Using php-functions
|
||||||
as modifiers has two little pitfalls: First: Sometimes the order
|
as modifiers has two little pitfalls: First: Sometimes the order
|
||||||
of the function-parameters is not the desirable one
|
of the function-parameters is not the desirable one
|
||||||
(<literal>{"%2.f"|sprintf:$float}</literal> actually works, but
|
(<literal>{"%2.f"|sprintf:$float}</literal> actually works, but
|
||||||
|
@@ -65,8 +65,9 @@ Next X-Men Film, X3, Delayed.
|
|||||||
]]>
|
]]>
|
||||||
</screen>
|
</screen>
|
||||||
</example>
|
</example>
|
||||||
<para>See also <link linkend="language.modifier.lower">lower</link> <link
|
<para>See also <link linkend="language.modifier.lower">lower</link>
|
||||||
linkend="language.modifier.upper">upper</link> </para>
|
and
|
||||||
|
<link linkend="language.modifier.upper">upper</link> </para>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
Local variables:
|
Local variables:
|
||||||
|
Reference in New Issue
Block a user