public function emvcRenderHtml(string $latteFile, array $data): string
    {
        $latte = new Engine();
        $latte->setTempDirectory($_SERVER['DOCUMENT_ROOT'] . BASE_URL . '/tmp/latte');
        return $latte->renderToString($_SERVER['DOCUMENT_ROOT'] . BASE_URL . '/private/latte/' . $latteFile, $data);
    }
public function emvcRenderHtml(string $latteFile, array $data): string
    {
        $latte = new Engine();
        $latte->setTempDirectory($_SERVER['DOCUMENT_ROOT'] . BASE_URL . '/tmp/latte');
        return $latte->renderToString($_SERVER['DOCUMENT_ROOT'] . BASE_URL . '/private/latte/' . $latteFile, $data);
    }
public function emvcRenderHtml ( string $ latteFile , array $ data ) : string { $ latte = new Engine ( ) ; $ latte -> setTempDirectory ( $ _SERVER [ 'DOCUMENT_ROOT' ] . BASE_URL . '/tmp/latte' ) ; return $ latte -> renderToString ( $ _SERVER [ 'DOCUMENT_ROOT' ] . BASE_URL . '/private/latte/' . $ latteFile , $ data ) ; }
Use Latte for rendering HTML E-mails in the EasyMVC framework

@param string $latteFile
@param array $data
@return string
Use Latte for rendering HTML E - mails in the EasyMVC framework