Class not found Error, problem with namespaces |
With the appearance of namespaces in CI4, the location of certain libraries or helpers has become rather conditionaly.
Let's say you want to make a helper class and place it in the app/Helper directory in file app/Helpers/Php2jquery.php PHP Code: <?php in file app/Controllers/Test.php PHP Code: <?php Please note that the file and class name starts with a capital letter as recommended in the manual |
Messages In This Thread |
Class not found Error, problem with namespaces - by music_ed - 11-30-2020, 09:12 AM
RE: Class not found Error, problem with namespaces - by InsiteFX - 11-30-2020, 10:28 PM
RE: Class not found Error, problem with namespaces - by music_ed - 12-01-2020, 02:47 AM
RE: Class not found Error, problem with namespaces - by InsiteFX - 12-01-2020, 01:44 PM
RE: Class not found Error, problem with namespaces - by vitnibel - 12-01-2020, 07:18 PM
RE: Class not found Error, problem with namespaces - by music_ed - 12-02-2020, 04:01 AM
|