Prado\Web\Services\TPageService::getBasePath PHP Метод

getBasePath() публичный Метод

public getBasePath ( ) : string
Результат string the root directory for storing pages. Defaults to the 'pages' directory under the application base path.
    public function getBasePath()
    {
        if ($this->_basePath === null) {
            $basePath = $this->getApplication()->getBasePath() . DIRECTORY_SEPARATOR . self::DEFAULT_BASEPATH;
            if (($this->_basePath = realpath($basePath)) === false || !is_dir($this->_basePath)) {
                $basePath = $this->getApplication()->getBasePath() . DIRECTORY_SEPARATOR . self::FALLBACK_BASEPATH;
                if (($this->_basePath = realpath($basePath)) === false || !is_dir($this->_basePath)) {
                    throw new TConfigurationException('pageservice_basepath_invalid', $basePath);
                }
            }
        }
        return $this->_basePath;
    }