This commit is contained in:
pete_morgan
2006-03-26 15:04:50 +00:00
parent 44fdef7a4d
commit aceb80eee2

View File

@@ -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>