How to acess class load in Classmao in ci4 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=31) +--- Thread: How to acess class load in Classmao in ci4 (/showthread.php?tid=74760) |
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. |