0
我有一個group_id分配給用戶,但在我的用戶索引頁面我想知道屬於日誌用戶所屬的特定組的用戶。 目前其設置爲顯示所有用戶如何獲得基於組ID的列表
public function index() {
$this->User->recursive = 0;
$this->set('users', $this->paginate());
}
我將如何改變這種
登錄:
public function login() {
if ($this->request->is('post')){
if ($this->Auth->login()) {
$this->redirect($this->Auth->redirect());
}else {
$this->Session->setFlash('Your username or password was incorrect.');
}
}
}
感謝
用戶如何登錄?來自acl的 – Wylie 2012-04-11 01:31:06
。我 – Autolycus 2012-04-11 01:39:05
增加登錄功能的問題 – Autolycus 2012-04-11 01:39:35