nazihheni / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

How to add selected="selected" on Select with PFBC 3.1? #213

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

With PFBC 2, to add "selected=selected" on a select list, it was simple
$form->addElement(new \PFBC\Element\Select('My list', 'list', array('1' => 
'one', '2' => 'two'), array('value' => '2')));

but, with PFBC 3.1, it doesn't work.
So,  can you tell me how to do it with this new version?

Thank you in advance ;-)

Original issue reported on code.google.com by pierrehe...@gmail.com on 21 Jun 2014 at 2:42

GoogleCodeExporter commented 8 years ago
Someone can answer me quickly, please?

Original comment by pierrehe...@gmail.com on 22 Jun 2014 at 10:12

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Please, someone can help me?

Original comment by pierrehe...@gmail.com on 30 Jun 2014 at 8:37