I'm trying to create a single, one-off page that will combine information from several models. This is the code I'm trying to use:
public function index() {
$this->loadModel('people');
$this->people->find('all', array(
'order'=>'people.last_name ASC',
'conditions' => array(
'People.member =' => '1',
),
));
$this->set('people', $this->paginate('people') );
}
But it seems that my call to find()
has no impact on $this->set()
, and I don't understand why.