how to call another classes method from within a class?
Posted
by DOJO
on Stack Overflow
See other posts from Stack Overflow
or by DOJO
Published on 2010-05-07T06:59:12Z
Indexed on
2010/05/07
7:18 UTC
Read the original article
Hit count: 190
here is my setup.
class testA {
function doSomething() {
return something;
}
}
$classA = new testA();
class testB {
$classA->doSomething();
}
this wont work inside that class.: $classA->doSomething(); how else would i do it?
© Stack Overflow or respective owner