<?php
class Employees extends Controller {

    public function __construct() {
        Auth::check(); // <--- INI yang membutuhkan file Auth.php

        $this->employeeModel = $this->logic("Employee_model");
    }

    public function index() {
        $data['title'] = "Employee Management";
        $data['employees'] = $this->employeeModel->getAllEmployees();

        $this->display("template/header", $data);
        $this->display("employees/index", $data);
        $this->display("template/footer");
    }

}
