Files
opensourcepos/app/Controllers/Office.php
objecttothis e90b5b87da Replace tabs with spaces (#4196)
Signed-off-by: objecttothis <objecttothis@gmail.com>
2025-03-28 21:24:21 +04:00

37 lines
569 B
PHP

<?php
namespace App\Controllers;
use App\Models\Employee;
/**
* @property Employee employee
*/
class Office extends Secure_Controller
{
protected Employee $employee;
public function __construct()
{
parent::__construct('office', null, 'office');
}
/**
* @return void
*/
public function getIndex(): void
{
echo view('home/office');
}
/**
* @return void
*/
public function logout(): void
{
$this->employee = model(Employee::class);
$this->employee->logout();
}
}