Re: html_options
Monte Ohrt <[email protected]> Mon, 26 Feb 2007 09:38:45 -0600
| Newsgroups | gmane.comp.php.smarty.devel |
|---|---|
| Message-ID | <[email protected]> |
Danilo Buerger wrote:
> Ok this is a problem still to figure out however now this works
> incorrectly as well:
>
> $smarty->assign('options', array('' => 'Please Choose',
> 0 => 0,
> 1 => 1,
> 2 => 2));
>
> $smarty->assign('selected', false);
>
> false should match the array key 0 but matches the empty string.
Regardless of what the best behavior is, IMHO, if someone is using
boolean "false" to try to select the "0" option from this list, they
need to fix their code.
--
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php