/**
* Return the path to the template directory
*
* @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'];
}
}