public function setDirectory($directory)
    {
        if (class_exists('\Latte\Engine', true))
        {
            // If possible, load Latte\Engine
            $this->latte = new Latte;
            $this->latte->setTempDirectory(realpath(Core::$tempDir . DS . 'Latte'));
        }
        else
        {
            throw new LayoutException("Could not load LatteEngine. Is it installed or Composer not loaded?", 1);
        }
    }
public function setDirectory($directory)
    {
        if (class_exists('\Latte\Engine', true))
        {
            // If possible, load Latte\Engine
            $this->latte = new Latte;
            $this->latte->setTempDirectory(realpath(Core::$tempDir . DS . 'Latte'));
        }
        else
        {
            throw new LayoutException("Could not load LatteEngine. Is it installed or Composer not loaded?", 1);
        }
    }
public function setDirectory ( $ directory ) { if ( class_exists ( '\Latte\Engine' , true ) ) { // If possible, load Latte\Engine $ this -> latte = new Latte ; $ this -> latte -> setTempDirectory ( realpath ( Core :: $ tempDir . DS . 'Latte' ) ) ; } else { throw new LayoutException ( "Could not load LatteEngine. Is it installed or Composer not loaded?" , 1 ) ; } }
Set the directory of the current template.

@param string $directory Template Directory
Set the directory of the current template .