Is there any black magic on sorting select boxes?
In the controller, Im trying:
$this->set('pretensoes', $this->Candidato->Pretensao-
>generateList(null,'descricao ASC'));
The related "pretensoes" table have a "descricao" column. Im using var
$displayField = 'descricao' at the pretensoes model. I created the
correct inflections for portuguese at inflections.php. However, the
generateList result brings the values of the descricao field, but with
the primary key field order. Any ideas?
Thanks in advance,
Norman
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---