in my controller I have this
public function station_users($id=null){
$users = $this->User->find('all',array('conditions'=>array('test_id'=>$this->params['named']['test_id'])));
$this->set('users', $users);
$this->render("station_users",'ajax');
}
I am getting all the users for a certain test id but now my sort doesnt work. how can I add pagination.
I tried
$this->User->recursive = 0;
$this->set('users', $this->paginate());
and that didnt work
thanks
Before calling
$this->paginate(), you need to configure your pagination, with something like this:The Cookbook is your friend, use it whenever possible.