In my project, I want call a function xieTest() in Datasource class.
The content of Datasource class is :
namespace common;
class Datasource
{
public function __construct()
{
}
public static function xieTest()
{
$str = "xietest";
return $str;
}
}
And my html test.php code is :
<body style="height:100%" >
<?php
$redis_obj = o1ws1v/class/common/Datasource::xieTest();
echo $redis_obj;
?>
</body>
My directory structure is:
/yjdata/www/www/test.php
/yjdata/www/www/o1ws1v/class/common/Datasource
It works fail, It seems nothing wrong.
Who can help me?