Example #1
0
 public function clearTestingTemplates()
 {
     foreach (array_keys($this->templates) as $file_name) {
         $compiled = $this->config->getCacheDir() . '/' . $file_name . '.php';
         if (file_exists($compiled)) {
             unlink($compiled);
         }
     }
     clearstatcache();
     $this->templates = array();
 }
Example #2
0
 public function locateCompiledTemplate($file_name)
 {
     return $this->config->getCacheDir() . '/' . md5($file_name) . '.php';
 }