error comma and how to load models is so
$this->loadModel('Auser');
so:
class UsersController extends AppController {
public function index() {
$this->loadModel('Auser');
$this->loadModel('Buser');
$this->paginate = array(
'Auser' => array(
'conditions' => array('Auser.role' => 0),
'limit' => 5
),
'Buser' => array(
'conditions' => array('Buser.role' => 1),
'limit' => 5
)
);
$this->set('ausers', $this->paginate('Auser'));
$this->set('busers', $this->paginate('Buser'));
}
}