diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-09-08 23:19:40 +0200 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-09-08 23:19:40 +0200 |
commit | e383c069f1aeba49ea9905f77a51bf663e614b0e (patch) | |
tree | 8164aa9e1fad104997e53c6e261bec991631dbbb /app/Controller/Base.php | |
parent | 8c6df9ef0cea757d25cbbcc6fa7cee86d8739627 (diff) |
Add public view for tasks
Diffstat (limited to 'app/Controller/Base.php')
-rw-r--r-- | app/Controller/Base.php | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/app/Controller/Base.php b/app/Controller/Base.php index f9059d1e..2d7b0c18 100644 --- a/app/Controller/Base.php +++ b/app/Controller/Base.php @@ -140,20 +140,28 @@ abstract class Base * Application not found page (404 error) * * @access public + * @param boolean $no_layout Display the layout or not */ - public function notfound() + public function notfound($no_layout = false) { - $this->response->html($this->template->layout('app_notfound', array('title' => t('Page not found')))); + $this->response->html($this->template->layout('app_notfound', array( + 'title' => t('Page not found'), + 'no_layout' => $no_layout, + ))); } /** * Application forbidden page * * @access public + * @param boolean $no_layout Display the layout or not */ - public function forbidden() + public function forbidden($no_layout = false) { - $this->response->html($this->template->layout('app_forbidden', array('title' => t('Access Forbidden')))); + $this->response->html($this->template->layout('app_forbidden', array( + 'title' => t('Access Forbidden'), + 'no_layout' => $no_layout, + ))); } /** |