/** * Internal class to setup smarty with a bunch of config parameters. */ protected function setupSmarty() { $p = $this->framework->getCacheDir() . "smarty/"; $this->setCacheDir($p); $this->setCompileDir($p . "compile/"); $this->setTemplateDir($this->framework->getTemplateDirs()); $this->error_reporting = 0; $this->clearAllCache(); $this->caching = \Smarty::CACHING_LIFETIME_CURRENT; $this->addPluginsDir(__DIR__ . "/Plugins"); }