aboutsummaryrefslogtreecommitdiff
path: root/views/default/page
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-12-19 17:55:21 -0800
committerCash Costello <cash.costello@gmail.com>2011-12-19 17:55:21 -0800
commit742f7630b8f2628b977e59756ac2844d1bd4683b (patch)
tree8c1fde819ce841d0b4d57ce23d31bc34ca386916 /views/default/page
parent5ee43086ec79b38e3f2cdb288f80bd5f24d413b1 (diff)
parentf003120fba687d14630b690c50e2316f717eca7d (diff)
downloadelgg-742f7630b8f2628b977e59756ac2844d1bd4683b.tar.gz
elgg-742f7630b8f2628b977e59756ac2844d1bd4683b.tar.bz2
Merge pull request #118 from cash/404
Fixes #4103 adds a 404 page
Diffstat (limited to 'views/default/page')
-rw-r--r--views/default/page/error.php14
-rw-r--r--views/default/page/layouts/error.php12
2 files changed, 26 insertions, 0 deletions
diff --git a/views/default/page/error.php b/views/default/page/error.php
new file mode 100644
index 000000000..b7ba3ae9b
--- /dev/null
+++ b/views/default/page/error.php
@@ -0,0 +1,14 @@
+<?php
+/**
+ * Page shell for errors
+ *
+ * This is for errors that are not unhandled exceptions. Those are handled
+ * through the failsafe viewtype to guarantee that no further exceptions occur.
+ * An example error would be 404 (page not found).
+ *
+ * @uses $vars['title'] The page title
+ * @uses $vars['body'] The main content of the page
+ * @uses $vars['sysmessages'] A 2d array of various message registers, passed from system_messages()
+ */
+
+echo elgg_view('page/default', $vars);
diff --git a/views/default/page/layouts/error.php b/views/default/page/layouts/error.php
new file mode 100644
index 000000000..cdce28a8e
--- /dev/null
+++ b/views/default/page/layouts/error.php
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Error layout
+ */
+
+$class = 'elgg-layout-error';
+if (isset($vars['class'])) {
+ $class = "$class {$vars['class']}";
+}
+$vars['class'] = $class;
+
+echo elgg_view('page/layouts/one_column', $vars);