Complete Phase 1: MVC, DB migrations, Auth, RBAC, Security, and Views
This commit is contained in:
22
app/Controllers/Admin/DashboardController.php
Normal file
22
app/Controllers/Admin/DashboardController.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controllers\Admin;
|
||||
|
||||
use App\Controllers\Controller;
|
||||
use App\Core\Request;
|
||||
use App\Core\Response;
|
||||
|
||||
class DashboardController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display admin dashboard.
|
||||
*/
|
||||
public function index(Request $request, Response $response): string
|
||||
{
|
||||
$user = $request->routeParam('_authenticated_user');
|
||||
return $this->render('admin/dashboard', [
|
||||
'user' => $user,
|
||||
'title' => 'Dashboard',
|
||||
], 'admin');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user