Example #1
0
File: Smarty.php Project: acp3/core
 /**
  * @param array $params
  *
  * @throws \SmartyException
  */
 public function configure(array $params = [])
 {
     $this->smarty->setErrorReporting($this->isDevOrInstall() ? E_ALL : 0);
     $this->smarty->setCompileId(!empty($params['compile_id']) ? $params['compile_id'] : $this->environment);
     $this->smarty->setCompileCheck($this->isDevOrInstall());
     $this->smarty->setCompileDir($this->appPath->getCacheDir() . 'tpl_compiled/');
     $this->smarty->setCacheDir($this->appPath->getCacheDir() . 'tpl_cached/');
 }