protected function buildHtml($aInputs, $aPost) { $oHtmlController = new BlockController('/Jab/Component/Contact/Template/'); foreach ($aInputs as &$oInput) { if (isset($aPost[$oInput->name])) { $oInput->value = $aPost[$oInput->name]; } } $oHtmlController->inputs = $aInputs; return $oHtmlController->render('mail.phtml'); }
public function render($oArticle) { $oBlockController = new BlockController('/Jab/Component/Article/Template/'); $oBlockController->article = $oArticle; return $oBlockController->render('article.phtml'); }