Skip to content
Advertisement

Tag: cakephp-2.4

cakePHP value for empty option

is there a way to pass a value for the empty option in a select dropdown generated by the FormHelper? I’m creating an input like this: echo $this->Form->input(‘supplier_id’, array(’empty’=>true)); with values supplied automatically from the controller like this and the select box is created like this: but I would like the first option (the empty one) to have a value

Advertisement