We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon Form

How can i create a Checkbox with same naming ? i've tried the following , but dons't work.


foreach( Team::find()  as $team )
{

    $form->add(new Check( "members[]" ,[
          'value' => $team->id,
     ]));

}
edited Jul '16

Wouldn't a Select with multiple enabled suit your needs? Or does it have to be checkboxes.