aboutsummaryrefslogtreecommitdiffstats
path: root/public/admin/controller/error
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2019-08-18 21:14:58 -0500
committerJesús <heckyel@hyperbola.info>2019-08-18 21:14:58 -0500
commit2eed7b082f83630301e51f57ca8394de228a8605 (patch)
tree1d19962d22d30f99317d9276e4bae7744fc93fc2 /public/admin/controller/error
downloadlibrecart-2eed7b082f83630301e51f57ca8394de228a8605.tar.lz
librecart-2eed7b082f83630301e51f57ca8394de228a8605.tar.xz
librecart-2eed7b082f83630301e51f57ca8394de228a8605.zip
first commit
Diffstat (limited to 'public/admin/controller/error')
-rw-r--r--public/admin/controller/error/not_found.php26
-rw-r--r--public/admin/controller/error/permission.php26
2 files changed, 52 insertions, 0 deletions
diff --git a/public/admin/controller/error/not_found.php b/public/admin/controller/error/not_found.php
new file mode 100644
index 0000000..07be5e2
--- /dev/null
+++ b/public/admin/controller/error/not_found.php
@@ -0,0 +1,26 @@
+<?php
+class ControllerErrorNotFound extends Controller {
+ public function index() {
+ $this->load->language('error/not_found');
+
+ $this->document->setTitle($this->language->get('heading_title'));
+
+ $data['breadcrumbs'] = array();
+
+ $data['breadcrumbs'][] = array(
+ 'text' => $this->language->get('text_home'),
+ 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true)
+ );
+
+ $data['breadcrumbs'][] = array(
+ 'text' => $this->language->get('heading_title'),
+ 'href' => $this->url->link('error/not_found', 'user_token=' . $this->session->data['user_token'], true)
+ );
+
+ $data['header'] = $this->load->controller('common/header');
+ $data['column_left'] = $this->load->controller('common/column_left');
+ $data['footer'] = $this->load->controller('common/footer');
+
+ $this->response->setOutput($this->load->view('error/not_found', $data));
+ }
+} \ No newline at end of file
diff --git a/public/admin/controller/error/permission.php b/public/admin/controller/error/permission.php
new file mode 100644
index 0000000..1d2ffd6
--- /dev/null
+++ b/public/admin/controller/error/permission.php
@@ -0,0 +1,26 @@
+<?php
+class ControllerErrorPermission extends Controller {
+ public function index() {
+ $this->load->language('error/permission');
+
+ $this->document->setTitle($this->language->get('heading_title'));
+
+ $data['breadcrumbs'] = array();
+
+ $data['breadcrumbs'][] = array(
+ 'text' => $this->language->get('text_home'),
+ 'href' => $this->url->link('common/dashboard', 'user_token=' . $this->session->data['user_token'], true)
+ );
+
+ $data['breadcrumbs'][] = array(
+ 'text' => $this->language->get('heading_title'),
+ 'href' => $this->url->link($this->request->get['route'], 'user_token=' . $this->session->data['user_token'], true)
+ );
+
+ $data['header'] = $this->load->controller('common/header');
+ $data['column_left'] = $this->load->controller('common/column_left');
+ $data['footer'] = $this->load->controller('common/footer');
+
+ $this->response->setOutput($this->load->view('error/permission', $data));
+ }
+}