Initial project import for team collaboration.
Exclude local docs, MCP, and secrets via gitignore. Made-with: Cursor
This commit is contained in:
22
app/Controllers/Admin/Role.php
Normal file
22
app/Controllers/Admin/Role.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers\Admin;
|
||||
|
||||
use App\Controllers\BaseController;
|
||||
use Config\Roles;
|
||||
|
||||
/**
|
||||
* 역할(mb_level) 관리.
|
||||
* 현재는 Config\Roles 기반 목록만 제공. 추후 role 테이블 연동 시 CRUD 확장.
|
||||
*/
|
||||
class Role extends BaseController
|
||||
{
|
||||
public function index(): string
|
||||
{
|
||||
$roles = config('Roles');
|
||||
return view('admin/layout', [
|
||||
'title' => '역할',
|
||||
'content' => view('admin/role/index', ['roles' => $roles]),
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user