This commit is contained in:
Jaybe
2025-03-05 14:02:29 +09:00
commit 247a7808d3
357 changed files with 161196 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
namespace App\Controllers;
use App\Controllers\BaseController;
class ExampleController extends BaseController
{
public function view($page = 'test')
{
if(!is_file(APPPATH . 'Views/example/' . $page . '.php')) {
throw new \CodeIgniter\Exceptions\PageNotFoundException($page);
}
return view('example/'.$page);
}
}