Re: Set class help needed

2010-03-31 Thread cricket
On Mar 31, 10:16 am, "Dr. Loboto" wrote: > If you pass "fields" option to find("list") as described for grouping > - this will do all the magic. Thanks, both, for the tip. I'd forgotten about that option (I don't think I've used it before). I'm not sure that it'll work in this case, though, as I'

Re: Set class help needed

2010-03-31 Thread Dr. Loboto
If you pass "fields" option to find("list") as described for grouping - this will do all the magic. On Mar 31, 3:13 pm, WebbedIT wrote: > Does the form helper automagically create select lists with OPTGROUPS? Check out the new CakePHP Questions site http://cakeqs.org and help others with their

Re: Set class help needed

2010-03-31 Thread WebbedIT
Does the form helper automagically create select lists with OPTGROUPS? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this grou

Re: Set class help needed

2010-03-30 Thread gmansilla
I would use Model::find('list'), and let cakephp do its magic On 30 mar, 11:20, cricket wrote: > I have an array of country data that I'm trying to adjust so it's > suitable to pass to FormHelper for select options with optgroup > labels. Set::combine has gotten me almost there but not quite. > >

Set class help needed

2010-03-30 Thread cricket
I have an array of country data that I'm trying to adjust so it's suitable to pass to FormHelper for select options with optgroup labels. Set::combine has gotten me almost there but not quite. Here's the data: Array ( [0] => Array ( [id] => 1 [iso_code] => US