Trying to get one random string from a model. I pulled this from the internet:
$this->Testimonial->findAll(null,null,'rand()',1,null,null);
Unfortunately findAll no longer exists in cakephp 1.3
$this->Quote->find('first', array('order' => array('rand()')))
you can try the following:
$count = $this->Testimonial->find('count'); $this->Testimonial->find('first', array('conditions' => array('id' => rand(1,$count))));
(this also does not return "all" results)