mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
typo
This commit is contained in:
@@ -110,13 +110,13 @@ You must supply a <strong>state</strong>.
|
|||||||
|
|
||||||
<example>
|
<example>
|
||||||
<title>another {eval} example</title>
|
<title>another {eval} example</title>
|
||||||
<para>This example outputs the server name and IP.
|
<para>This outputs the server name (in uppercase) and IP.
|
||||||
The variable $str could be from a database for example.</para>
|
The variable $str could be from a database query also.</para>
|
||||||
<programlisting role="php">
|
<programlisting role="php">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
// php script
|
// php script
|
||||||
$str = 'The server name is {$smarty.server.SERVER_NAME|upper} '
|
$str = 'The server name is {$smarty.server.SERVER_NAME|upper} '
|
||||||
'at {$smarty.server.SERVER_ADDR}';
|
.'at {$smarty.server.SERVER_ADDR}';
|
||||||
$smarty->assign('foo',$str);
|
$smarty->assign('foo',$str);
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
Reference in New Issue
Block a user