mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-02-02 05:31:10 -05:00
38 lines
651 B
PHP
38 lines
651 B
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
use App\Models\Employee;
|
|
use CodeIgniter\HTTP\ResponseInterface;
|
|
|
|
/**
|
|
* @property Employee employee
|
|
*/
|
|
class Office extends Secure_Controller
|
|
{
|
|
protected Employee $employee;
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct('office', null, 'office');
|
|
}
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function getIndex(): ResponseInterface|string
|
|
{
|
|
return view('home/office');
|
|
}
|
|
|
|
/**
|
|
* @return void
|
|
*/
|
|
public function logout(): ResponseInterface|string
|
|
{
|
|
$this->employee = model(Employee::class);
|
|
|
|
$this->employee->logout();
|
|
}
|
|
}
|