gdc_cmod/app/Controllers/ErrorPage.php
mikael-zakaria 77f15bfc94 first commit
2025-11-11 09:14:25 +07:00

21 lines
428 B
PHP

<?php
namespace App\Controllers;
// Khusus Untuk Menangani Error 401 unauthorized dan 404 notFound
class ErrorPage extends BaseController
{
public function unauthorized()
{
return view('errors/unauthorized');
}
public function notFound()
{
// Set status HTTP ke 404
$this->response->setStatusCode(404);
// Tampilkan view 404
return view('errors/notfound');
}
}