mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fix error with include_php description, add $this to description
This commit is contained in:
@@ -1684,8 +1684,8 @@ cell: 760-1234<br></programlisting>
|
||||
By default, php files are only included once even if called
|
||||
multiple times in the template. You can specify that it should be
|
||||
included every time with the <emphasis>once</emphasis> attribute.
|
||||
Setting once to true will include the php script each time it is
|
||||
included.
|
||||
Setting once to false will include the php script each time it is
|
||||
included in the template.
|
||||
</para>
|
||||
<para>
|
||||
You can optionally pass the <emphasis>assign</emphasis> attribute,
|
||||
@@ -1693,6 +1693,10 @@ cell: 760-1234<br></programlisting>
|
||||
<emphasis>include_php</emphasis> will be assigned to instead of
|
||||
displayed.
|
||||
</para>
|
||||
<para>
|
||||
The smarty object is available as $this within the PHP script that you
|
||||
include.
|
||||
</para>
|
||||
<example>
|
||||
<title>function include_php</title>
|
||||
<programlisting>
|
||||
|
Reference in New Issue
Block a user