Just create small form with combobox ( you can use formHelper
http://api.cakephp.org/class_form_helper.html ). You can call your
combobox e.g. List.sort and in your controller

$sort = isset($this->data['List.sort]) ? $this->data['List.sort'] :
'ASC';
$this->ModelName->find('all', array('order' => 'column_name '.$sort));

But imho better way is to use Cakephp Pagination (
http://book.cakephp.org/view/164/Pagination )

On 8 Gru, 14:09, Sami <[EMAIL PROTECTED]> wrote:
> Hi,
>     Now i am developing one application in cakephp. Retrieve
> name,place and created date. How insert one combobox include options
> sort by date ascending, Sort by date descending. User select the
> options from combobox that based fetch the data from database and
> display it., Help me
--~--~---------~--~----~------------~-------~--~----~
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