fix error with include_php description, add $this to description

This commit is contained in:
mohrt
2002-09-23 16:59:25 +00:00
parent 7aace6e3d1
commit 8a7d191074

View File

@@ -1684,8 +1684,8 @@ cell: 760-1234&lt;br&gt;</programlisting>
By default, php files are only included once even if called By default, php files are only included once even if called
multiple times in the template. You can specify that it should be multiple times in the template. You can specify that it should be
included every time with the <emphasis>once</emphasis> attribute. included every time with the <emphasis>once</emphasis> attribute.
Setting once to true will include the php script each time it is Setting once to false will include the php script each time it is
included. included in the template.
</para> </para>
<para> <para>
You can optionally pass the <emphasis>assign</emphasis> attribute, You can optionally pass the <emphasis>assign</emphasis> attribute,
@@ -1693,6 +1693,10 @@ cell: 760-1234&lt;br&gt;</programlisting>
<emphasis>include_php</emphasis> will be assigned to instead of <emphasis>include_php</emphasis> will be assigned to instead of
displayed. displayed.
</para> </para>
<para>
The smarty object is available as $this within the PHP script that you
include.
</para>
<example> <example>
<title>function include_php</title> <title>function include_php</title>
<programlisting> <programlisting>