示例#1
0
 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');
 }
示例#2
0
 public function render($oArticle)
 {
     $oBlockController = new BlockController('/Jab/Component/Article/Template/');
     $oBlockController->article = $oArticle;
     return $oBlockController->render('article.phtml');
 }