Hey,
It worked perfectly. I appreciate your help grigri!!!
Here is what I used:
var $paginate = array('Project' => array('conditions' => '','order'
=> '','limit' => 15));
function index()
{
// Sort Randomly Start
if ($this->Session->check('Projects.randomSeed'))
{
$seed =
$this->Session->read('Projects.randomSeed');
}
else
{
$seed = mt_rand();
$this->Session->write('Projects.randomSeed',
$seed);
}
$this->paginate['Project']['order'] =
sprintf('RAND(%d)', $seed);
// Sort Randomly End
$this->set('projects', $this->paginate());
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---