CodeIgniter Forums
How to acess class load in Classmao in ci4 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forum-31.html)
+--- Thread: How to acess class load in Classmao in ci4 (/thread-74760.html)



How to acess class load in Classmao in ci4 - seunex - 11-03-2019

Hello community how can we acess the class we loaded in Classmao in the autoload.php

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

How can I extend the Myclass


RE: How to acess class load in Classmao in ci4 - InsiteFX - 11-03-2019

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.