<< Back
cakephp: How to set default value in select dropdown list
cakephp: How to set default value in select dropdown list
cakephp: How to set default value in select dropdown list
The default value can be a variable that can be 'set' in the controller and passed to the view.. Published: 1st June 2016 by$this->Form->input('Country.id', array('type'=>'select', 'label'=>'Countries', 'options'=>$countrylist, 'default'=>'3'));