Hello,
Update: This only happens when the name of the field is an array... ie phone_numbers[] , it works as intended otherwise.
I am able to set default of all my text fields and what not with "setDefault" in my form creator. However when I am trying to select a default option in a select I can not seem to get to take. I have a form class that is doing something like this.
$form_item = new Select($fields['name']);
$form_item->setOptions($fields['options']);
$form_item->setDefault($fields['default']);
$form_item->add($form_item);
I have only been able to set a default by using the tag->setDefault right before rendering in my view.
$this->tag->setDefault($fields['name'],$fields['default']);
$this->render($fields['name']);
Any thoughts?
btw this is Phalcon 1.3.x