Components_Config_Application::getTemplateDirectory PHP Method

getTemplateDirectory() public method

Return the path to the template directory
public getTemplateDirectory ( ) : string
return string The path to the template directory.
    public function getTemplateDirectory()
    {
        $options = $this->_config->getOptions();
        if (!isset($options['templatedir'])) {
            return Components_Constants::getDataDirectory();
        } else {
            return $options['templatedir'];
        }
    }

Usage Example

コード例 #1
0
ファイル: Distribute.php プロジェクト: raz0rsdge/horde
 public function run()
 {
     $script = $this->_config_application->getTemplateDirectory() . '/components.php';
     if (file_exists($script)) {
         include $script;
     } else {
         throw new Components_Exception(sprintf('The distribution specific helper script at "%s" is missing!', $script));
     }
 }
All Usage Examples Of Components_Config_Application::getTemplateDirectory
Components_Config_Application