Пример #1
0
Файл: Tpl.php Проект: arhone/cmf
 function __construct(Cache $Cache, Translate $Translate, array $config = [])
 {
     $this->Cache = $Cache;
     $this->Translate = $Translate;
     $this->mergeConfig($config);
     self::$hash = $this->Cache->get('arh.tpl.hash');
 }
Пример #2
0
 /**
  * Устанавливает главные переменные
  * @param array $data
  * @return void
  */
 public function setVariable(array $data = [])
 {
     self::$variable = array_merge(self::$variable, $data);
 }