index.php
include('./class1.php');
include('./class2.php');
$Func = new function();
$Func->testfuncton1();
class1.php
class controller{
public function test(){
echo 'this is test';
}
}
class2.php
class function{
public function testfuncton1(){
controller::test();
}
}
But we not get content from function test().
Tell me please where error ?