Re: [SMARTY-DEV] html_options

From: Date: Mon, 26 Feb 2007 10:37:35 +0000
Subject: Re: [SMARTY-DEV] html_options
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-2968@lists.php.net to get a copy of this message
Hi, On 2/24/07, Danilo Buerger <danilo@blizzz.org> wrote:
$smarty->assign('myOptions', array(true => 'test', false => 'foo')); $smarty->assign('mySelect', false); $smarty->display('test.tpl');
As messju noted, PHP is not "so" type safe. But try to cast your true/false as string and see if that works. Cheers, Till

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