Hey,
I want to sort a paginate()-result in a random order. It would be
simple, if all results should be random
var $paginate = array(
'limit' => 10,
'order' => 'RAND()'
);
But the default row should be the date and I want to generate a a
sorting link, so that the user can sort by random on his own choice.
<?=$paginator->sort("Random", 'RAND()')?>
Unfortunately it's not working. I think the model validates the second
parameter und checks if it's a rowname.
Is there a way to generate a link with random-sorting?
Regards,
Onkel Judith
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