public function getBasePath()
{
if ($this->_basePath === null) {
$this->_basePath = dirname($this->getRequest()->getApplicationFilePath()) . DIRECTORY_SEPARATOR . self::DEFAULT_BASEPATH;
if (($basePath = realpath($this->_basePath)) === false || !is_dir($basePath)) {
throw new TConfigurationException('thememanager_basepath_invalid2', $this->_basePath);
}
$this->_basePath = $basePath;
}
return $this->_basePath;
}