/**
* Initialise Twig
*
* @return void
*/
protected function initTemplateEngine()
{
$this->loader = new \Smarty();
$this->loader->muteExpectedErrors();
$this->loader->setTemplateDir($this->getTemplateDir());
$this->loader->addPluginsDir(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'SmartyPlugins');
$this->initSmartyCache();
Logger::debug("Smarty Cache: " . $this->loader->getCacheDir());
}