ServerinfoController.class.php under the
Controller file<?phpnamespace Admin\Controller;use Think\Controller;
class ServerinfoController extends controller{
public function Serverinfo(){
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