本文整理匯總了PHP中TemplateManager::template方法的典型用法代碼示例。如果您正苦於以下問題:PHP TemplateManager::template方法的具體用法?PHP TemplateManager::template怎麽用?PHP TemplateManager::template使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TemplateManager
的用法示例。
在下文中一共展示了TemplateManager::template方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getGalerij
$tpl['title'] = "de Plantenshop: fotogalerij";
$tpl['body_id'] = "galerij";
//content
$tpl['rechts'] = getGalerij();
break;
case "registreer":
/*** Registreer formulier pagina ***/
$tpl['title'] = "de Plantenshop: registreer u als klant";
$tpl['body_id'] = "registreer";
//content
$tpl['rechts'] = getRegistreer();
$tpl['paginaScripts'] = getScriptElements(array("js/vendor/jquery/jquery-validation-1.14.0/dist/jquery.validate.min.js", "js/registreer.js"));
break;
default:
//foutieve pagina gaat nr home?
$tpl['title'] = "de Plantenshop: fout";
$tpl['body_id'] = "fout";
$tpl['rechts'] = getFoutePagina();
}
//einde switch
} else {
/*** homepagina ***/
$tpl['body_id'] = "home";
//content
$tpl['rechts'] = getHome();
$tpl['paginaScripts'] = getScriptElements("js/accordion_home.js");
}
//***** uitvoering *******************
$tm = new TemplateManager();
$html = $tm->template($tpl);
echo $html;