TP5与TP6的区别不同
1.引入Db不同
TP6 :use think\facade\Db;
TP5: use think\Db;
2.引入基类不同
TP6 use app\BaseController; -----class Index extends BaseController
TP5 use \think\Controller; ----- class Index extends Controller
1.引入Db不同
TP6 :use think\facade\Db;
TP5: use think\Db;
2.引入基类不同
TP6 use app\BaseController; -----class Index extends BaseController
TP5 use \think\Controller; ----- class Index extends Controller