一,C:\phpStudy\PHPTutorial\WWW\tp51\thinkphp\library\think
二,App.php文件
/**
* 获取应用类库目录
* @access public
* @return string
*/
public function getAppPath()
{
if (is_null($this->appPath)) {
$this->appPath = Loader::getRootPath() . 'application' . DIRECTORY_SEPARATOR;
}
return $this->appPath;
}
三,把application修改 app
$this->appPath = Loader::getRootPath() . 'app' . DIRECTORY_SEPARATOR;
标签:getRootPath,tp5.1,app,application,appPath,SEPARATOR From: https://www.cnblogs.com/96net/p/17072472.html