當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DefaultController::renderLayout方法代碼示例

本文整理匯總了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();
 }
開發者ID:jezekl,項目名稱:logger,代碼行數:7,代碼來源:Error.class.php

示例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();
 }
開發者ID:jezekl,項目名稱:logger,代碼行數:9,代碼來源:Dashboard.class.php

示例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();
 }
開發者ID:jezekl,項目名稱:logger,代碼行數:11,代碼來源:Campaigns.class.php

示例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();
 }
開發者ID:jezekl,項目名稱:logger,代碼行數:13,代碼來源:Click.class.php

示例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();
 }
開發者ID:jezekl,項目名稱:logger,代碼行數:24,代碼來源:Login.class.php


注:本文中的DefaultController::renderLayout方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。