Conversie codeigniter 4

This commit is contained in:
2026-01-09 11:41:28 +01:00
parent dbd8c8aed2
commit f0b9c6ad40
242 changed files with 20034 additions and 346 deletions
+44
View File
@@ -0,0 +1,44 @@
<?php
/**
* CodeIgniter 4 Boot file
*/
use CodeIgniter\Boot;
use Config\Paths;
/*
* ---------------------------------------------------------------
* SETUP OUR PATH CONSTANTS
* ---------------------------------------------------------------
*/
// Ensure $paths is available
if (! isset($paths)) {
$paths = new Paths();
}
// Define ROOTPATH
defined('ROOTPATH') || define('ROOTPATH', realpath($paths->appDirectory . '/..') . DIRECTORY_SEPARATOR);
// Path to the application directory
defined('APPPATH') || define('APPPATH', realpath($paths->appDirectory) . DIRECTORY_SEPARATOR);
// Path to the public directory
defined('PUBLICPATH') || define('PUBLICPATH', realpath($paths->publicDirectory) . DIRECTORY_SEPARATOR);
// Path to the writable directory
defined('WRITEPATH') || define('WRITEPATH', realpath($paths->writableDirectory) . DIRECTORY_SEPARATOR);
// Path to the tests directory
defined('TESTPATH') || define('TESTPATH', realpath($paths->testsDirectory) . DIRECTORY_SEPARATOR);
/*
* ---------------------------------------------------------------
* GRAB THE CODEIGNITER BOOT CLASS
* ---------------------------------------------------------------
*/
require ROOTPATH . 'vendor/codeigniter4/framework/system/Boot.php';
return Boot::bootWeb($paths);