> I want to display alert title,type & created date from alerts
> table.In that form also include the one drop down box(options are,
> Sort by Ascendig and Sort by Descending)
Why would a list of alerts be in a form? Surely they would be in
tabular or list format?
I am fairly new to Cake, but my sorting issues are all resolved by
using the Paginator Helper which can make any column of a table a link
to alter the order of a list.
$paginator->sort('Column Name', 'Model.field'),
You should be able to create a drop down list in a separate form which
when submitted (by hitting a form button or by a JavaScript event)
would submit request to an url of format
/cake/controller/action/page:1/sort:Model.field/direction:asc
Regards,
Paul.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---