Form select how to build outgroups?

2012-02-27 Thread heohni
Hi, I would like to such a select: FORM SELECT NAME=auswahl OPTGROUP LABEL=Countries OPTION VALUE=0France/OPTION /OPTGROUP OPTGROUP LABEL=Cities OPTION VALUE=0Paris/OPTION /OPTGROUP OPTGROUP LABEL=Cars OPTION VALUE=0Peugeot/OPTION /OPTGROUP /SELECT /FORM But is there a chance to

Re: Form select how to build outgroups?

2012-02-27 Thread Thiago Belem
http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::select Always check the documentation... If you would like to generate a select with optgroups, just pass data in hierarchical format. This works on multiple checkboxes and radio buttons too, but instead of optgroups

Re: Form select how to build outgroups?

2012-02-27 Thread heohni
OK, but I work on a multilingual projekt and need the name of the outgroup translated, so I need to use __() function. I have my array ready, but right now the 'group key' is numeric key and I don't know how to replace this numeric key with a string (which I can translate) On 27 Feb., 14:17,