public setLoader ( latte\ILoader $loader ) : static | ||
$loader | latte\ILoader | |
return | static |
public function setLoader(ILoader $loader)
{
$this->loader = $loader;
return $this;
}
/** * @param string $basePath * @param string $tempPath */ public function __construct($basePath, $tempPath = null) { $this->latte = new Engine(); $this->latte->setLoader(new FileLoader()); if ($tempPath) { $this->latte->setTempDirectory($tempPath); } $this->basePath = $basePath; }