public function ipNotAllowed()
    {
        //If the user's IP address is not banned
        if (!$this->request->isBanned()) {
            return $this->redirect($this->referer(['_name' => 'homepage'], true));
        }

        $this->viewBuilder()->setLayout('login');
    }
public function ipNotAllowed()
    {
        //If the user's IP address is not banned
        if (!$this->request->isBanned()) {
            return $this->redirect($this->referer(['_name' => 'homepage'], true));
        }

        $this->viewBuilder()->setLayout('login');
    }
public function ipNotAllowed ( ) { //If the user's IP address is not banned if ( ! $ this -> request -> isBanned ( ) ) { return $ this -> redirect ( $ this -> referer ( [ '_name' => 'homepage' ] , true ) ) ; } $ this -> viewBuilder ( ) -> setLayout ( 'login' ) ; }
"IP not allowed" page
@return \Cake\Network\Response|null|void
IP not allowed page