本文整理匯總了PHP中DefaultController::renderLayout方法的典型用法代碼示例。如果您正苦於以下問題:PHP DefaultController::renderLayout方法的具體用法?PHP DefaultController::renderLayout怎麽用?PHP DefaultController::renderLayout使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類DefaultController
的用法示例。
在下文中一共展示了DefaultController::renderLayout方法的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();
}