本文整理汇总了PHP中DefaultController::setView方法的典型用法代码示例。如果您正苦于以下问题:PHP DefaultController::setView方法的具体用法?PHP DefaultController::setView怎么用?PHP DefaultController::setView使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DefaultController
的用法示例。
在下文中一共展示了DefaultController::setView方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: error_404
public function error_404()
{
parent::setLayout('defaultLayout');
parent::setView('404');
$this->data['parameters'] = $this->parameters;
parent::renderLayout();
}
示例2: 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();
}
示例3: 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();
}
示例4: 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();
}
示例5: password
public function password()
{
if (empty($_SESSION["logger_username"]) || empty($_SESSION["logger_nickname"])) {
$this->redirect('login');
}
parent::setLayout('loginLayout');
parent::setView('password');
$this->data['parameters'] = $this->parameters;
$this->data['nickname'] = ucfirst($_SESSION['logger_nickname']);
$this->data['username'] = $_SESSION['logger_username'];
$this->data['avatar'] = false;
if (isset($_POST['confirm'])) {
if ($this->checkPassword($this->data['username'], $_POST['password'])) {
$_SESSION['logger_username_verified'] = $this->data['username'];
$_SESSION['logged_login_time'] = strtotime('+ 1 min');
$this->redirect('dashboard/');
} else {
$this->data['error_msg'] = 'Incorrect password!';
}
} else {
$this->data['error_msg'] = '';
}
parent::renderLayout();
}