aaah, yes.
That works perfectly.
I completely left out the `var $uses` part.
thanks
Barry

On Jan 16, 2:13 pm, Barry <[EMAIL PROTECTED]> wrote:
> I've tried using $l = $this->Dealer->find('list');
> It gives me the data from the dealers table and I'm after the list
> from the countries table.
> I guess this is where I got stuck initially.
>
> I am doing this is the DealersController - can't imagine doing it
> anywhere else.
>
> On Jan 16, 2:05 pm, francky06l <[EMAIL PROTECTED]> wrote:
>
> > Use  something like
> > $l = $this->model->find('list');
> > $options = set::combine($l, "{n}.id", "{n}.name");
>
> > On Jan 16, 12:58 pm, Barry <[EMAIL PROTECTED]> wrote:
>
> > > I've come across this function searching in the groups.
> > > Problem is that when I try and use it I get:
>
> > > Warning (512): (Model::generateList) Deprecated, use
> > > Model::find("list") or Model::find("all") and Set::combine() [CORE/
> > > cake/libs/model/model.php, line 2191]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to