testing codes

This commit is contained in:
Darrel Israel
2024-06-24 10:47:45 +08:00
parent c3368b1a7b
commit a11736df53
4 changed files with 26 additions and 2 deletions
+1 -1
View File
@@ -5,4 +5,4 @@ use CodeIgniter\Router\RouteCollection;
/** /**
* @var RouteCollection $routes * @var RouteCollection $routes
*/ */
$routes->get('/', 'Home::index'); $routes->get('/', 'index::index');
+14
View File
@@ -0,0 +1,14 @@
<?php
namespace App\Controllers;
use App\Controllers\BaseController;
use CodeIgniter\HTTP\ResponseInterface;
class IndexController extends BaseController
{
public function index()
{
return view('index');
}
}
+11
View File
@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Code Igniter 4</title>
</head>
<body>
<h1>Hello</h1>
</body>
</html>
-1
View File
@@ -225,7 +225,6 @@
<div class="heroe"> <div class="heroe">
<h1>Welcome to CodeIgniter <?= CodeIgniter\CodeIgniter::CI_VERSION ?></h1>
<h2>The small framework with powerful features</h2> <h2>The small framework with powerful features</h2>