public function getCacheFilename($name) { if (false === $this->cache) { return false; } $class = substr($this->getTemplateClass($name), strlen($this->templateClassPrefix)); return $this->getCache().'/'.substr($class, 0, 2).'/'.substr($class, 2, 2).'/'.substr($class, 4).'.php'; }
public function addTemplate($path) { $this->environment->loadTemplate($path); $this->templates[] = $this->environment->getCacheFilename($path); }