本文整理汇总了PHP中DefaultController::isAllowedToAccess方法的典型用法代码示例。如果您正苦于以下问题:PHP DefaultController::isAllowedToAccess方法的具体用法?PHP DefaultController::isAllowedToAccess怎么用?PHP DefaultController::isAllowedToAccess使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DefaultController
的用法示例。
在下文中一共展示了DefaultController::isAllowedToAccess方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: skate
public function skate()
{
parent::isAllowedToAccess();
parent::setLayout('defaultLayout');
parent::setView('skate');
$this->data['parameters'] = $this->parameters;
$this->data['orders'] = Statistics::getOrdersOverview(1, '2015-12-02', '2015-12-15');
parent::renderLayout();
}
示例2: defaultView
public function defaultView()
{
parent::isAllowedToAccess();
parent::setLayout('defaultLayout');
parent::setView('default');
$this->data['parameters'] = $this->parameters;
$campaigns = new CampaignList();
$this->data['campaigns'] = $campaigns->getCampaigns();
$this->data['campaign_types'] = $campaigns->getCampaignTypes();
parent::renderLayout();
}
示例3: defaultView
public function defaultView()
{
parent::isAllowedToAccess();
parent::setLayout('defaultLayout');
parent::setView('default');
$this->data['parameters'] = $this->parameters;
$this->data['clicks'] = Statistics::getClicksOverview(1, '1920x1080', 'www.skate-praha.cz/');
$this->data['clicks2'] = Statistics::getClicksOverview(1, '1366x768', 'www.skate-praha.cz/');
$this->data['clicks3'] = Statistics::getClicksOverview(1, '1920x1080', 'www.skate-praha.cz/kosik/');
$this->data['clicks4'] = Statistics::getClicksOverview(1, '1920x1080', 'www.skate-praha.cz/pokladna/');
$this->data['clicks5'] = Statistics::getClicksOverview(1, '1920x1080', 'www.skate-praha.cz/rekapitulace/');
parent::renderLayout();
}