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
。私は – Autolycus
質問にログイン機能を追加しました – Autolycus