aclを使用していて、ユーザーがどのグループに属しているかに基づいてユーザーをリダイレクトしたい
私のappcaontrollerで私はこれを持っています
public function beforeFilter() {
//Configure AuthComponent
//$this->Auth->allow('display');
$this->Auth->loginAction = array('controller' => 'users', 'action' => 'login');
$this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 'login');
$this->Auth->loginRedirect = array('controller' => 'posts', 'action' => 'add');
}
ユーザーがgroup_id1の場合、どうすればよいですか?group_id=4などとは異なる場所にリダイレクトする必要があります。
ありがとう