another example

This commit is contained in:
pete_morgan
2006-03-28 01:23:16 +00:00
parent f756e42f38
commit ed8ca5df46

View File

@@ -38,14 +38,20 @@
if($foo == $bar){ if($foo == $bar){
echo 'This will come out in the template'; echo 'This will come out in the template';
} }
$this->assign('varX','Strawberry'); $this->assign('varX','Strawberry');
{/php} {/php}
<strong>{$varX}</strong> is my fav ice cream <strong>{$varX}</strong> is my fav ice cream
]]> ]]>
</programlisting> </programlisting>
</example> <para>The following seriously NOT recommended as its in the template scope</para>
<programlisting
<![CDATA[
{php}
print_r($some_array);
{/php}
]]>
</programlisting>
</example>
<para> <para>
See also See also