• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to acess class load in Classmao in ci4

#1
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
Reply

#2
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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.