private function preconfigureSmarty() { $this->smarty->addTemplateDir(realpath(APPLICATION_PATH . '/../themes/' . $this->themesService->getThemePath())); $this->smarty->config_dir = realpath(APPLICATION_PATH . '/../themes/' . $this->themesService->getThemePath() . '_conf'); // reverse templates dir order $this->smarty->setTemplateDir(array_reverse($this->smarty->getTemplateDir())); }