Also, you can specify 'fields' key for your find()...
i.e. $this->ModelName->find('list', array('fields'=>array('id',
'some_field_name')...
On Aug 26, 1:37 pm, Michael <[EMAIL PROTECTED]> wrote:
> First, I am rather new to cakephp and still getting my head around
> some of its ideas.
>
> So, I am working on getting a posting system working with a user
> table. In the book I am reading out of, they use generateList(), but
> that has been depreciated and found that I should be using
> find('list'). From my understanding, it should return something like
> this:
>
> array('Bob' => 16, 'Mark' => 19, 'Sam' => 23)
>
> But instead I am getting
>
> array(16 => 16, 19 => 19, 23 => 23)
>
> Any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---