本文整理匯總了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();
}