Re: [SMARTY-DEV] html_options

From: Date: Mon, 26 Feb 2007 15:38:45 +0000
Subject: Re: [SMARTY-DEV] html_options
References: 1 2 3 4 5 6 7  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2978@lists.php.net to get a copy of this message
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.

« previous php.smarty.dev (#2978) next »