Thanks for the heads up. You pointed me in the right way, but the
problem wasn't in the controller.
I had to modify the table header in the view:

        <table cellpadding="0" cellspacing="0">
                <tr>
                        <th><?php echo $paginator->sort('Group.name');?></th>

Using 'Group.name' instead of just 'name' fixes the sorting. I guess
it was because I was paginating on the Membership model.

Also, thanks for the hint to get the user id from the auth component.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to