CodeIgniter Forums

Full Version: How to acess class load in Classmao in ci4
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello community how can we acess the class we loaded in Classmao in the autoload.php

My class => Apppath/ third-party/class.php.

How can I extend the Myclass
You need to tell it in a use clause where the namespace is.

PHP Code:
use Apppath\third-party\class; 

Then you would extend it like so.

PHP Code:
class MyClass extends class

I have not used the Third Party folder but see if that will work for you.