mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-05 19:04:27 +02:00
fix typos
This commit is contained in:
@@ -84,14 +84,14 @@ require('Smarty.class.php');
|
|||||||
$smarty = new Smarty;
|
$smarty = new Smarty;
|
||||||
$smarty->assign('cust_ids', array(1000,1001,1002,1003));
|
$smarty->assign('cust_ids', array(1000,1001,1002,1003));
|
||||||
$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane
|
$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane
|
||||||
Johnson','Carlie Brown'));
|
Johnson','Charlie Brown'));
|
||||||
$smarty->assign('customer_id', 1001);
|
$smarty->assign('customer_id', 1001);
|
||||||
$smarty->display('index.tpl');
|
$smarty->display('index.tpl');
|
||||||
|
|
||||||
|
|
||||||
index.tpl:
|
index.tpl:
|
||||||
|
|
||||||
{html_radios values=$cust_ids selected=$customer_id output=$cust_names separator="<br />"}
|
{html_radios name="id" values=$cust_ids selected=$customer_id output=$cust_names separator="<br />"}
|
||||||
|
|
||||||
|
|
||||||
index.php:
|
index.php:
|
||||||
|
Reference in New Issue
Block a user