src/Money/Module/Transaction/Controller/TransactionComponent.php
protected function render($templateName)
    {
        $template = new Template($this->themePath . '/' . $templateName);
        $template->setVars($this->dataCollection->toArray());

        return $template->render();
    }
protected function render($templateName)
    {
        $template = new Template($this->themePath . '/' . $templateName);
        $template->setVars($this->dataCollection->toArray());

        return $template->render();
    }
Render template

@param  string $templateName
@return string