Twig_Environment::getCacheFilename PHP Method

getCacheFilename() public method

public getCacheFilename ( $name )
    public function getCacheFilename($name)
    {
        return $this->getCache() ? $this->getCache().'/'.$this->getTemplateClass($name).'.php' : false;
    }

Same methods

Twig_Environment::getCacheFilename ( string $name ) : string

Usage Example

 public function addTemplate($path)
 {
     $this->environment->loadTemplate($path);
     $this->templates[] = $this->environment->getCacheFilename($path);
 }
All Usage Examples Of Twig_Environment::getCacheFilename