Why i receive error? the class in the same namespace..
php 5.3.0
namespace ExampleSystem\Core;
class Test {
public function __construct() {
print 'Test ok';
}
}
// Fatal error: Class 'Test' not found in ...
$class_name = 'Test';
$obj = new $class_name;
// Ok
$class_name = 'ExampleSystem\Core\Test';
$obj = new $class_name;
// Ok
$obj = new Test;