举个例子说,现在有2个类文件:
test1.php
class ba
=====
test2.php
class Index extends ba
我们在调用Index类的时候,应该include test1.php吧,不然会报错。
------------------------------------------
现在在thinkphp中,我扩展了一个公共控制器,所以现在的结构变成了:
Controller.class.php(系统核心类)
class Controller {}
=========
ba
class ba
=========
UserController.class.php(用户控制器)
class ba
我就想问一下,ba

在3.1手册中有说明,但是不知道其实现原理是什么,唉。。
最佳答案