本文整理匯總了PHP中FrontController::getTemplateVarPage方法的典型用法代碼示例。如果您正苦於以下問題:PHP FrontController::getTemplateVarPage方法的具體用法?PHP FrontController::getTemplateVarPage怎麽用?PHP FrontController::getTemplateVarPage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類FrontController
的用法示例。
在下文中一共展示了FrontController::getTemplateVarPage方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getTemplateVarPage
public function getTemplateVarPage()
{
$page = parent::getTemplateVarPage();
$presenter = new CartPresenter();
$presented_cart = $presenter->present($this->context->cart);
if (count($presented_cart['products']) == 0) {
$page['body_classes']['cart-empty'] = true;
}
return $page;
}
示例2: getTemplateVarPage
public function getTemplateVarPage()
{
$page = parent::getTemplateVarPage();
if ($this->assignCase == 2) {
$page['body_classes']['cms-id-' . $this->cms_category->id] = true;
} else {
$page['body_classes']['cms-id-' . $this->cms->id] = true;
if (!$this->cms->indexation) {
$page['meta']['robots'] = 'noindex';
}
}
return $page;
}
示例3: getTemplateVarPage
public function getTemplateVarPage()
{
$page = parent::getTemplateVarPage();
$page['title'] = $this->trans('The page you are looking for was not found.', array(), 'Shop.Theme');
return $page;
}