Re: html_options

Danilo Buerger <[email protected]> Mon, 26 Feb 2007 17:22:56 +0100
Newsgroups gmane.comp.php.smarty.devel
Message-ID <[email protected]>
> 
> Personally, I think the point is moot. Whether or not you can generally use
> true/false as array keys, AFAIK, one can never get the PHP values true or false
> back from a form post. In that light, one has no business specifying them when
> they really mean to specify 0 or 1, not?
> 
> boots
> 

Well it could be for semantic reasons that someone wants to have 
something like this:

$smarty->assign('options', array(true => 'Yes', false => 'No'));
$smarty->assign('select_yes_by_default', false);

-- 
Smarty Development Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php