I am trying to get php's namespace technique down but having some issues here:
Why can I not call the method testA from class B? Also I would like to add that I am using 5.3.
in lib ->
<?php
namespace lib;
class A{
public static function testA(){
echo "I am inside A";
}
}
in root dir ->
<?php
class B{
public function showSomething(){
lib\A::testA();
}
$test = new B();
$test->showSomething();