Latte\Engine::setLoader PHP Méthode

setLoader() public méthode

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

Usage Example

Exemple #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