Latte\Engine::setTempDirectory PHP Method

setTempDirectory() public method

Sets path to temporary directory.
public setTempDirectory ( $path ) : static
return static
    public function setTempDirectory($path)
    {
        $this->tempDirectory = $path;
        return $this;
    }

Usage Example

Beispiel #1
0
 public function __construct(CacheProvider $cache, Config $config)
 {
     $this->cache = $cache;
     $this->latte = new Engine();
     $parser = $this->latte->getParser();
     $parser->defaultSyntax = $config->default_syntax;
     $this->latte->setTempDirectory($cache->config->temp_dir);
 }
All Usage Examples Of Latte\Engine::setTempDirectory