mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-06 03:14:27 +02:00
minor formatting and changes
This commit is contained in:
@@ -56,7 +56,8 @@
|
||||
</informaltable>
|
||||
|
||||
|
||||
<caution>
|
||||
<note>
|
||||
<title>Caution</title>
|
||||
<para>
|
||||
Be careful when capturing <link
|
||||
linkend="language.function.insert"><varname>{insert}</varname></link>
|
||||
@@ -67,10 +68,11 @@
|
||||
commands that you expect to run
|
||||
within cached content, do not capture this content.
|
||||
</para>
|
||||
</caution>
|
||||
</note>
|
||||
|
||||
<para>
|
||||
<example>
|
||||
<title>{capture} with a the name attribute</title>
|
||||
<title>{capture} with the name attribute</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{* we don't want to print a div tag unless content is displayed *}
|
||||
|
@@ -12,13 +12,13 @@
|
||||
<title>Technical Note</title>
|
||||
<para>
|
||||
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.
|
||||
</para>
|
||||
</note>
|
||||
|
||||
<example>
|
||||
<title>Example php in {php} tags</title>
|
||||
<title>php code within {php} tags</title>
|
||||
<programlisting>
|
||||
<![CDATA[
|
||||
{php}
|
||||
@@ -78,4 +78,4 @@ End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
||||
-->
|
||||
|
@@ -97,7 +97,7 @@
|
||||
</para></listitem>
|
||||
|
||||
<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.
|
||||
</para></listitem>
|
||||
|
||||
@@ -352,9 +352,9 @@ $smarty->assign('address',$addr);
|
||||
<example>
|
||||
<title>Nested {section}'s</title>
|
||||
<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
|
||||
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>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
|
Reference in New Issue
Block a user