I have this enum select list pre-selected with values then this is put into Form helper and select function like below:
$enumList = enum('Uusi hakija', 'Jatkohakemus', '40+', '60+','Työyhteisöhanke','Mieshanke','Urheiluseurahanke');
$vars = explode('.', $enumList);
echo $this->Form->select('Model.project_type', $vars);
My question is how can you set it so you define “selected” value with session value like below?
$saved = $this->Session->read('form');
echo $this->Form->input('amount_accepted',array('value' => $saved['amount_accepted'] ));
do it in the controller and pass it along to the view
PS: why so complicated with the options?