mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-07 11:54:26 +02:00
fixed examples
This commit is contained in:
@@ -112,7 +112,7 @@ $smarty->assign('custid',$data);
|
|||||||
<hr />
|
<hr />
|
||||||
{* print out all the values of the $custid array reversed *}
|
{* print out all the values of the $custid array reversed *}
|
||||||
{section name=foo loop=$custid step=-1}
|
{section name=foo loop=$custid step=-1}
|
||||||
{$custid[foo]}
|
{$custid[foo]}<br />
|
||||||
{/section}
|
{/section}
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
@@ -295,7 +295,7 @@ $smarty->assign('contact_info', $info);
|
|||||||
id: 1000<br />
|
id: 1000<br />
|
||||||
name: John Smith<br />
|
name: John Smith<br />
|
||||||
address: 253 N 45th<br />
|
address: 253 N 45th<br />
|
||||||
home phone: 555-555-5555<br />
|
home phone: 555-555-5555<br />
|
||||||
cell phone: 666-555-5555<br />
|
cell phone: 666-555-5555<br />
|
||||||
e-mail: john@myexample.com<br />
|
e-mail: john@myexample.com<br />
|
||||||
<hr>
|
<hr>
|
||||||
@@ -304,7 +304,6 @@ $smarty->assign('contact_info', $info);
|
|||||||
address: 417 Mulberry ln<br />
|
address: 417 Mulberry ln<br />
|
||||||
home phone: 123-456-4<br />
|
home phone: 123-456-4<br />
|
||||||
web: www.example.com<br />
|
web: www.example.com<br />
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
id: 1002<br />
|
id: 1002<br />
|
||||||
name: Jane Munson<br />
|
name: Jane Munson<br />
|
||||||
@@ -316,7 +315,7 @@ $smarty->assign('contact_info', $info);
|
|||||||
|
|
||||||
<example>
|
<example>
|
||||||
<title>sections and associative arrays</title>
|
<title>sections and associative arrays</title>
|
||||||
<programlisting role="php">
|
<programlisting role="php">
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
@@ -332,7 +331,7 @@ $smarty->assign('contacts',$data);
|
|||||||
|
|
||||||
?>
|
?>
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
|
Reference in New Issue
Block a user