reconstruction of the project

This commit is contained in:
root
2026-03-08 16:33:24 -04:00
parent 23b7db1107
commit c8de5f7edc
9157 changed files with 77877 additions and 1073823 deletions
@@ -0,0 +1,27 @@
<?php
namespace App\Controllers\View;
use CodeIgniter\Controller;
use CodeIgniter\Database\Exceptions\DatabaseException;
class TestDBController extends Controller
{
public function index()
{
$db = \Config\Database::connect();
try {
$query = $db->query('SELECT 1');
$result = $query->getResult();
if ($result) {
echo "Database connection is successful.";
} else {
echo "Database connection failed.";
}
} catch (DatabaseException $e) {
echo "Database connection failed: " . $e->getMessage();
}
}
}