getTemplateDirectory() public method

Return the path to the template directory
public getTemplateDirectory ( ) : string
return string The path to the template directory.
Esempio n. 1
0
 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));
     }
 }
Esempio n. 2
0
 public function run()
 {
     $options = $this->_config->getOptions();
     $templates = new Components_Helper_Templates_RecursiveDirectory($this->_config_application->getTemplateDirectory(), $options['cisetup']);
     $templates->write(array('config' => $this->_config));
 }