Hey guys,
Having a poblem with a few classes I've got here. They both extend a single class, however, when I attempt to instantiate them both on the same page, I am getting a redeclaration error, as they both require the use of the superclass, I am really therefore declaring this superclass twice .. e.g. :
require ("C.php") ;
class A extends C {
}
require ("C.php") ;
class B extends C {
}
If I try :
$a = new A() ;
$b = new B() ; //this gives me an error...... I have required("C.php") twice....
Does anyone know a way around this?