<?php
namespace app\controller;
use app\BaseController;
use think\app; //这句
class Index extends BaseController {
public function test() {
echo App::VERSION; //还有这句
}
}
01-08
3584
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
<?php
namespace app\controller;
use app\BaseController;
use think\app; //这句
class Index extends BaseController {
public function test() {
echo App::VERSION; //还有这句
}
}