Hello everyone.
After days of searching for a problem, I need your help!
I'm trying to rename the "app" directory to "myapp" but I get this error:
Code:
Fatal error: Uncaught TypeError: Argument 1 passed to CodeIgniter\CodeIgniter::__construct() must be an instance of Config\App, null given, called in C:\wamp64\www\CI4\vendor\codeigniter4\framework\system\Config\Services.php on line 139 and defined in C:\wamp64\www\CI4\vendor\codeigniter4\framework\system\CodeIgniter.php on line 147
I followed the Codeigniter documentation for the following changes.
In Config/Paths.php
PHP Code:
public $appDirectory = __DIR__ . '/..';
In public/index.php
PHP Code:
$pathsConfig = FCPATH . '../myapp/Config/Paths.php';
I did a CI 4 install with composer with this command line :
Code:
composer create-project codeigniter4/appstarter --no-dev
Here is my file structure
And I use Wampserver
Thanks in advance everyone!
Pierre