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
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
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
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