There are two functions in the paginator helper for this:
$paginator->sortDir() returns null, 'asc', or 'desc' returns null
if the results are not sorted
$paginator->sortKey() The name of the key by which the recordset is
being sorted, or
null if the results are not
currently sorted.
On Jul 17, 6:39 am, Copot <[EMAIL PROTECTED]> wrote:
> CakePHP 1.2
> Basically i just want to display an image (arrow up or down) which
> must be corelated with the sort field and the sort direction.
> How can I tell which field is being used and the direction of the
> sort?
> Can anyone help me ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---