Trying to map findAll to $form-select()

2008-07-15 Thread Igor
Could anyone point me in the right direction with this one please? I'm trying to pass some values to my view... $stages = $this-Stage-findAll( null, array('id', 'name'), null, null ); $this-set('stages', $stages); ... this is what's being passed... Array ( [0] = Array (

Re: Trying to map findAll to $form-select()

2008-07-15 Thread Chris Hartjes
On Tue, Jul 15, 2008 at 10:39 AM, Igor [EMAIL PROTECTED] wrote: Is it possible to map this array in such a way so the output looks something like the example below? Or is it a matter of passing right query to findAll() to produce a asimpler array? select option value=2Stage 2/option