how to get values at .ctp file

2010-05-05 Thread MANOJ DHAMAL
hi , I am using combobox in view.ctp like ?php echo $form-select('perpage_id', $per_page,null,array('id'='perpage'),false); ? In the same ctp(view.ctp) i want fetch selected value of combobox in variable $perpage= //HERE IS CODE TO GET VALUE OF COMBOBOX; Idont know how to fetch values of

how to get values at .ctp file

2010-05-05 Thread MANOJ DHAMAL
hi , I am using combobox in view.ctp like ?php echo $form-select('perpage_id', $per_page,null,array('id'='perpage'),false); ? In the same ctp(view.ctp) i want fetch selected value of combobox in variable $perpage= //HERE IS CODE TO GET VALUE OF COMBOBOX; Idont know how to fetch values of

how to get values at .ctp file

2010-05-05 Thread MANOJ DHAMAL
hi , I am using combobox in view.ctp like ?php echo $form-select('perpage_id',$per_page,null,array('id'='perpage'),false); ? In the same ctp(view.ctp) i want fetch selected value of combobox in variable $perpage= //HERE IS CODE TO GET VALUE OF COMBOBOX; Idont know how to fetch values of fields

Re: how to get values at .ctp file

2010-05-05 Thread John Andersen
You have two options as far as I know: One is the gather the select values in the controller action and pass them on to the view using the controllers set method See http://book.cakephp.org/view/57/Controller-Methods#set-427 Two is to gather the select values from within the view using the