The problem is that your array associates the PHP boolean value TRUE
with the key 'isSelected'. 1 is the functional equivalent of TRUE in
many languages, hence PHPTAL gives you 1 since you specified TRUE. Use
the string 'selected' instead.

$options = array(
   array(
      'label' => 'Option1',
      'value' => 1
   ),
   array(
      'label'      => 'Option2',
      'value'      => 2,
      'isSelected' => true
   ),
   array(
      'label' => 'Option1',
      'value' => 2
   )
);

-- 

Scott Trevithick
sc...@trevithick.ca
416-876-0811
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal

Reply via email to