summaryrefslogtreecommitdiff
path: root/controllers/base.php
diff options
context:
space:
mode:
authorFrédéric Guillot <contact@fredericguillot.com>2014-02-24 19:07:25 -0500
committerFrédéric Guillot <contact@fredericguillot.com>2014-02-24 19:07:25 -0500
commit565290fbf9e3727655921a969550167aa59a6e24 (patch)
tree0c3a98b1152e90eff86da26d9d9c8ec803dfdf95 /controllers/base.php
parent8159cc99a64cfe563dccea6821348764fc40fb85 (diff)
Display a page not found when the data is not in the dabase anymore
Diffstat (limited to 'controllers/base.php')
-rw-r--r--controllers/base.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/controllers/base.php b/controllers/base.php
index c4a69bf0..c7e59b18 100644
--- a/controllers/base.php
+++ b/controllers/base.php
@@ -90,4 +90,9 @@ abstract class Base
$this->session->flash(t('There is no active project, the first step is to create a new project.'));
$this->response->redirect('?controller=project&action=create');
}
+
+ public function notfound()
+ {
+ $this->response->html($this->template->layout('app_notfound', array('title' => t('Page not found'))));
+ }
}