下面是我的一个目录结构:
index.php
/Controller/Person.php
/Controller/Base.php
我想实现 Person 继承Base类
将代码改变后,程序初始化Person类的时候就进行不下去了
没有报错提示。
我应该怎么改这个程序,让Person继承Base这个类
<?php
namespace Controller;
class Person extends Base {
...
即可
<?php
namespace Controller;
use \Controller\Base
class Person extends Base {
//code
}