I am having problem displaying the contents of array into Smarty Checkbox in HTML
The details of array $people are:
$people = Array ( [1746524] => Allen Jamie [3118171] => Browning Andy [1246417] => Barrett Rich [4677613] => Chang Dongin [2962280] => Chupack Marla [1193259] => Dimmitt Holly [1828493] => Ezell Trevor L)
The checkbox just does not display at all.
The details of array $people are:
$people = Array ( [1746524] => Allen Jamie [3118171] => Browning Andy [1246417] => Barrett Rich [4677613] => Chang Dongin [2962280] => Chupack Marla [1193259] => Dimmitt Holly [1828493] => Ezell Trevor L)
Code:
PHP code:
foreach ($rawPeople->person as $p)
{
$lastname = (string)$p->{'last-name'};
$firstname = (string)$p->{'first-name'};
$name = $lastname." ".$firstname;
$people[(int)(string)$p->id] = $name;
}
$smartyObj = new ConfigSmarty();
$smartyObj->assign('mt',$people);
HTML:
<tr><td>{html_checkboxes name='id' options=$mt
separator='<br />'} </td></tr>
The checkbox just does not display at all.
Comment