Checkboxes aren’t really covered in the tutorial for forms in 1.2. However, it’s covered pretty well on the blog over here:
http://www.symfony-project.org/blog/2008/10/14/new-in-symfony-1-2-make-your-choice
One thing to note: if you need a multiple checkboxes for one value (in php it’s handled like so: varname[]), you would use the sfWidgetFormChoice with the multiple=>true and expanded=>true.
Also, if it’s an array of values, use sfValidatorChoiceMany instead of sfValidatorChoice.
-d








 ?>/images/php-logo.gif)

