Hello
I don't think it's live on 1.1, but if it's not, I think you should
copy the symfony1.2 /lib/widget/sfWidgetFormSelectCheckbox.class.php
to your local /lib/widget directory, and you can make a simple call
to:
$this->setWidget('myMultipleCheckbox', new
sfWidgetFormSelectCheckbox(array('choices' => $arrayOfChoices)));
(validated with sfValidatorChoiceMany)
Cedric
On Sep 25, 12:37 pm, rccc <[EMAIL PROTECTED]> wrote:
> Hello everybody,
>
> the annoucement of the 1.1.2 release says :
>
> "The sfWidgetFormSelectRadio is now able to deal with names already
> ending with an empty square brackets set ([])".
>
> Does it means this already works with the checkbox widget ?
>
> in another way, is it possible to write this :
>
> $this->setWidgets(array(
> 'desc_cri[]' => sfWidgetFormInputCheckbox(),
> 'date[]' => sfWidgetFormDate()
> ));
>
> $this->widgetSchema->setNameFormat('critics[%s]');
>
> so that i could do this :
>
> foreach($this->request->getParameter('critics[date[]]') as $date)
> {
> ...
>
> }
>
> thanks by advance for response
>
> rccc
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---