Another hint:
When the data is not joined you can also do "dynamic" ordering on the
related data (not the primary data by the related values though) using
Containable Behaviour.




On Jun 7, 10:04 pm, fain182 <fain...@gmail.com> wrote:
> > In your Sito model, set your default sort order like so:
>
> >    var $belongsTo = array(
> >        'Stato' => array(
> >            'order' => 'Stato.stato ASC',
> >        ));
>
> great solution!
> thank you
>
> --
> pietro
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to