easyappointments/application/controllers/Logout.php

40 lines
1 KiB
PHP
Raw Normal View History

<?php defined('BASEPATH') or exit('No direct script access allowed');
/* ----------------------------------------------------------------------------
2022-01-18 15:05:42 +03:00
* Easy!Appointments - Online Appointment Scheduler
*
* @package EasyAppointments
* @author A.Tselegidis <alextselegidis@gmail.com>
2021-12-18 19:43:45 +03:00
* @copyright Copyright (c) Alex Tselegidis
* @license https://opensource.org/licenses/GPL-3.0 - GPLv3
* @link https://easyappointments.org
* @since v1.0.0
* ---------------------------------------------------------------------------- */
/**
* Logout controller.
*
* Handles the logout page functionality.
*
* @package Controllers
*/
class Logout extends EA_Controller
{
/**
* Render the logout page.
*/
2024-04-26 17:36:14 +03:00
public function index(): void
{
$this->session->sess_destroy();
$company_name = setting('company_name');
html_vars([
2022-10-16 18:02:47 +03:00
'page_title' => lang('log_out'),
'company_name' => $company_name,
]);
$this->load->view('pages/logout');
}
}