ServerinfoController.class.php under the
Controller file<?phpnamespace Admin\Controller;use Think\Controller;
class ServerinfoController extends controller{
public function Serverinfo(){
胤彬-2018-10-19 21:06:40
TP5.0 ROOT_PATH variable gets the project root directory TP5.1 Env::get('app_path') gets the project root directory. Read more about the official documentation of TP5