mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 19:34:27 +02:00
minor formatting and changes
This commit is contained in:
@@ -56,7 +56,8 @@
|
|||||||
</informaltable>
|
</informaltable>
|
||||||
|
|
||||||
|
|
||||||
<caution>
|
<note>
|
||||||
|
<title>Caution</title>
|
||||||
<para>
|
<para>
|
||||||
Be careful when capturing <link
|
Be careful when capturing <link
|
||||||
linkend="language.function.insert"><varname>{insert}</varname></link>
|
linkend="language.function.insert"><varname>{insert}</varname></link>
|
||||||
@@ -67,10 +68,11 @@
|
|||||||
commands that you expect to run
|
commands that you expect to run
|
||||||
within cached content, do not capture this content.
|
within cached content, do not capture this content.
|
||||||
</para>
|
</para>
|
||||||
</caution>
|
</note>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
<example>
|
<example>
|
||||||
<title>{capture} with a the name attribute</title>
|
<title>{capture} with the name attribute</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
{* we don't want to print a div tag unless content is displayed *}
|
{* we don't want to print a div tag unless content is displayed *}
|
||||||
|
@@ -12,13 +12,13 @@
|
|||||||
<title>Technical Note</title>
|
<title>Technical Note</title>
|
||||||
<para>
|
<para>
|
||||||
To access PHP variables in <varname>{php}</varname> blocks you will need to use the PHP
|
To access PHP variables in <varname>{php}</varname> blocks you will need to use the PHP
|
||||||
<ulink url="&url.php-manual;global">global</ulink>
|
<ulink url="&url.php-manual;global"><literal>global</literal></ulink>
|
||||||
keyword.
|
keyword.
|
||||||
</para>
|
</para>
|
||||||
</note>
|
</note>
|
||||||
|
|
||||||
<example>
|
<example>
|
||||||
<title>Example php in {php} tags</title>
|
<title>php code within {php} tags</title>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
{php}
|
{php}
|
||||||
@@ -78,4 +78,4 @@ End:
|
|||||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||||
vim: et tw=78 syn=sgml
|
vim: et tw=78 syn=sgml
|
||||||
vi: ts=1 sw=1
|
vi: ts=1 sw=1
|
||||||
-->
|
-->
|
||||||
|
@@ -97,7 +97,7 @@
|
|||||||
</para></listitem>
|
</para></listitem>
|
||||||
|
|
||||||
<listitem><para>
|
<listitem><para>
|
||||||
Sections can be nested, and the nested
|
{section}'s can be nested, and the nested
|
||||||
<varname>{section}</varname> names must be unique from each other.
|
<varname>{section}</varname> names must be unique from each other.
|
||||||
</para></listitem>
|
</para></listitem>
|
||||||
|
|
||||||
@@ -352,9 +352,9 @@ $smarty->assign('address',$addr);
|
|||||||
<example>
|
<example>
|
||||||
<title>Nested {section}'s</title>
|
<title>Nested {section}'s</title>
|
||||||
<para>
|
<para>
|
||||||
Sections can be nested as deep as you like. With nested sections,
|
{section}'s can be nested as deep as you like. With nested {section}'s,
|
||||||
you can access complex data structures, such as multi-dimensional
|
you can access complex data structures, such as multi-dimensional
|
||||||
arrays. This is a php script thats assign's the arrays.
|
arrays. This is an example <filename>.php</filename> script thats assign's the arrays.
|
||||||
</para>
|
</para>
|
||||||
<programlisting role="php">
|
<programlisting role="php">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
|
Reference in New Issue
Block a user