我有两个类。Bout在命名空间测试''but''中,Art在命名空间测试''Art中。
namespace test'bout;
use test'art'Art;
class Bout extends Art{
function __construct(){
include_once 'Art.php';
echo"boutique ";
new Art();
}
}
new Bout();
之后:
namespace test'art;
class Art{
function __construct(){
echo "article";
}
}
一旦我放上"extends Art",我就有:致命错误:在第4行的/opt/lamp/htdocs/test/Boutique.php中找不到类"test''Art''Art"
这是否意味着我没有正确使用"use test''art''art;"?
thx所有
namespace test'bout;
use test'art'Art;
**include __DIR__.'/article/Article.php';**
class Bout extends Art{...