Welcome Guest, Not a member yet? Register   Sign In
CI4: class not found error
#2

Generally with namespacing etc and correct location of your models , declaring in controller something like:

Code:
use \App\Models\UsersModel;


code works so that you only have to do something along the lines of :

Code:
$handleName = new UsersModel();
CMS CI4     I use Arch Linux by the way 

Reply


Messages In This Thread
CI4: class not found error - by Ahmed Haroon - 04-07-2022, 12:50 AM
RE: CI4: class not found error - by captain-sensible - 04-07-2022, 01:50 AM
RE: CI4: class not found error - by Ahmed Haroon - 04-07-2022, 04:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB