| <?php |
|
|
| namespace Kanboard\Controller; |
|
|
| use Kanboard\Core\Base; |
|
|
| |
| |
| |
| |
| |
| |
| class AppController extends Base |
| { |
| |
| |
| |
| |
| |
| |
| |
| public function accessForbidden($withoutLayout = false, $message = '') |
| { |
| if ($this->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, |
| )), 403); |
| } |
| } |
|
|
| |
| |
| |
| |
| |
| |
| public function notFound($withoutLayout = false) |
| { |
| $this->response->html($this->helper->layout->app('app/notfound', array( |
| 'title' => t('Page not found'), |
| 'no_layout' => $withoutLayout, |
| ))); |
| } |
| } |
|
|