首页 > 其他分享 >tp5.1把application修改命名空间的名称app

tp5.1把application修改命名空间的名称app

时间:2023-01-29 13:46:21浏览次数:48  
标签:getRootPath tp5.1 app application appPath SEPARATOR

一,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

相关文章