Re: find list vs find all - Manipulating the format of a javascript object

2008-08-20 Thread grigri
Try it like this: $params = array( // ... 'fields' => array('State.id', 'State.name', 'State.id') // ... ); $result = array_values($this->State->find('list', $params)); On Aug 19, 6:32 pm, Josoroma <[EMAIL PROTECTED]> wrote: > With the following piece of code: > >         function getJson

find list vs find all - Manipulating the format of a javascript object

2008-08-19 Thread Josoroma
With the following piece of code: function getJsonStates() { //Configure::write("debug",0); $params = array( 'conditions'=> null, 'fields'