Latte\Engine::setLoader PHP Method

setLoader() public method

public setLoader ( latte\ILoader $loader ) : static
$loader latte\ILoader
return static
    public function setLoader(ILoader $loader)
    {
        $this->loader = $loader;
        return $this;
    }

Usage Example

Example #1
0
 /**
  * @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;
 }
All Usage Examples Of Latte\Engine::setLoader