mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 02:44:27 +02:00
fixed more typos
This commit is contained in:
@@ -99,10 +99,10 @@ index.php:
|
|||||||
require('Smarty.class.php');
|
require('Smarty.class.php');
|
||||||
$smarty = new Smarty;
|
$smarty = new Smarty;
|
||||||
$smarty->assign('cust_radios', array(
|
$smarty->assign('cust_radios', array(
|
||||||
1001 => 'Joe Schmoe',
|
1000 => 'Joe Schmoe',
|
||||||
1002 => 'Jack Smith',
|
1001 => 'Jack Smith',
|
||||||
1003 => 'Jane Johnson',
|
1002 => 'Jane Johnson',
|
||||||
1004 => 'Charlie Brown'));
|
1003 => 'Charlie Brown'));
|
||||||
$smarty->assign('customer_id', 1001);
|
$smarty->assign('customer_id', 1001);
|
||||||
$smarty->display('index.tpl');
|
$smarty->display('index.tpl');
|
||||||
|
|
||||||
@@ -114,10 +114,10 @@ index.tpl:
|
|||||||
|
|
||||||
OUTPUT: (both examples)
|
OUTPUT: (both examples)
|
||||||
|
|
||||||
<input type="radio" name="id[]" value="1000">Joe Schmoe<br />
|
<input type="radio" name="id" value="1000">Joe Schmoe<br />
|
||||||
<input type="radio" name="id[]" value="1001" checked="checked"><br />
|
<input type="radio" name="id" value="1001" checked="checked">Jack Smith<br />
|
||||||
<input type="radio" name="id[]" value="1002">Jane Johnson<br />
|
<input type="radio" name="id" value="1002">Jane Johnson<br />
|
||||||
<input type="radio" name="id[]" value="1003">Charlie Brown<br /></programlisting>
|
<input type="radio" name="id" value="1003">Charlie Brown<br /></programlisting>
|
||||||
</example>
|
</example>
|
||||||
</sect1>
|
</sect1>
|
||||||
<!-- Keep this comment at the end of the file
|
<!-- Keep this comment at the end of the file
|
||||||
|
Reference in New Issue
Block a user