Closed nynsen closed 3 years ago
Hi, can you check if your issue is the same with #4857 ? If yes, there's already a fix for that: #4867
Just tested this with the latest 4.2
branch and the issue is definitely fixed by that PR. Closing as duplicate.
When using CLI Generators (aka spark) the file is generated in the wrong folder if the provided name is contained in the APP_NAMESPACE config var.
CodeIgniter 4 version 4.1.3
Example scenario N.B.: The default namespace is
App
The file
Appointment.php
should be generated inAPPPATH/Controllers/Appointment.php
. The same happens for the other generators and also in scaffolding.Affected module(s) I traced down the problem to
Line 346
inAPPPATH/../framework/system/CLI/GeneratorTrait/GeneratorTrait.php
Context Ubuntu 20.04 LTS / bash / PHP 7.4 (ondrey)