request->isAjax()) { $this->response->json(array('message' => $message ?: t('Access Forbidden')), 403); } else { $this->response->html($this->helper->layout->app('app/forbidden', array( 'title' => t('Access Forbidden'), 'no_layout' => $withoutLayout, ))); } } /** * Page not found * * @access public * @param boolean $withoutLayout */ public function notFound($withoutLayout = false) { $this->response->html($this->helper->layout->app('app/notfound', array( 'title' => t('Page not found'), 'no_layout' => $withoutLayout, ))); } }