Page 1 of 1
How can I use include or require in class?
Posted: Fri Mar 17, 2006 9:43 am
by destiny_cores
I have ClassA in ClassA.php and I create new class is ClassB.php. If I want import ClassA to use in ClassB.php. How I should coding?
Thank you
Posted: Fri Mar 17, 2006 9:47 am
by ol4pr0
you could use the extends method
Extends PHP.net or
Extends 2
Posted: Fri Mar 17, 2006 10:15 am
by destiny_cores
But class A not relate class B. I want some method from Class A to get value. Who can help me? please...
Thanks you
Posted: Fri Mar 17, 2006 10:25 am
by feyd
create an instance of class a in class b.