Welcome Guest, Not a member yet? Register   Sign In
How To Call A Model Or Class Using Custom Directory Path In Codeigniter 4
#3

When you create an instance of a class
$object = new ClassName()
the class must be defined in this file or manually included or automatically included via the autoloader.

CI4 uses its own class autoloader and composer autoloader.
But since you do not have classes declared and the autoloader is not used, you get errors.
Reply


Messages In This Thread
RE: How To Call A Model Or Class Using Custom Directory Path In Codeigniter 4 - by iRedds - 09-24-2021, 11:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB