Differences: template options radio vs. boolean for t/f
Posted: Thu Mar 13, 2008 3:43 pm
In bulletproof, many of our template options are radio buttons like this:
But they could just have easily been this:
What is the real implication? I know we get a language variable with the type=radio.... does that not happen with a boolean or is there some other difference, or are these methods otherwise identical?
Code: Select all
array(
'var' => 'firbtitle',
'name' => FIR_BTITLE,
'type' => 'radio',
'radio' => array('value' => array('true', 'false'),
'desc' => array(YES, NO)),
'default' => 'true',
),Code: Select all
array(
'var' => 'firbtitle',
'name' => FIR_BTITLE,
'type' => 'boolean',
'default' => 'true',
);