diff --git a/application/config/routes.php b/application/config/routes.php index 2302aec8..062fd67e 100644 --- a/application/config/routes.php +++ b/application/config/routes.php @@ -43,7 +43,7 @@ require_once __DIR__ . '/../helpers/routes_helper.php'; $route['default_controller'] = 'appointments'; -$route['404_override'] = 'errors/error404'; +$route['404_override'] = ''; /* | ------------------------------------------------------------------------- diff --git a/application/controllers/Errors.php b/application/controllers/Errors.php deleted file mode 100644 index aeb759c7..00000000 --- a/application/controllers/Errors.php +++ /dev/null @@ -1,49 +0,0 @@ - - * @copyright Copyright (c) 2013 - 2020, Alex Tselegidis - * @license https://opensource.org/licenses/GPL-3.0 - GPLv3 - * @link https://easyappointments.org - * @since v1.0.0 - * ---------------------------------------------------------------------------- */ - -/** - * Errors controller. - * - * Handles the app error related operations. - * - * @package Controllers - */ -class Errors extends EA_Controller { - /** - * Errors constructor. - */ - public function __construct() - { - parent::__construct(); - - $this->load->model('settings_model'); - } - - /** - * Display the 404 error page. - */ - public function index() - { - $this->error404(); - } - - /** - * Display the 404 error page. - */ - public function error404() - { - $this->load->view('general/error404', [ - 'company_name' => setting('company_name') - ]); - } -} diff --git a/application/views/general/error404.php b/application/views/general/error404.php deleted file mode 100644 index c9faba8e..00000000 --- a/application/views/general/error404.php +++ /dev/null @@ -1,58 +0,0 @@ - - -
- - - - - -- = lang('page_not_found_message') ?> -
- - - - = lang('book_appointment_title') ?> - - - - - = lang('backend_section') ?> - - -