26 lines
523 B
PHP
26 lines
523 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Controllers;
|
||
|
|
|
||
|
|
use App\Models\DictDeptModel;
|
||
|
|
|
||
|
|
class Dept extends BaseController
|
||
|
|
{
|
||
|
|
protected $dictDeptModel;
|
||
|
|
|
||
|
|
public function __construct()
|
||
|
|
{
|
||
|
|
$this->dictDeptModel = new DictDeptModel();
|
||
|
|
}
|
||
|
|
|
||
|
|
public function index(): string
|
||
|
|
{
|
||
|
|
return view('dept/index', [
|
||
|
|
'title' => 'Department Dictionary',
|
||
|
|
'depts' => $this->dictDeptModel->findAll(),
|
||
|
|
'active_menu' => 'dept',
|
||
|
|
'page_title' => 'Department Dictionary'
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|