当前位置: 首页>>代码示例>>PHP>>正文


PHP DefaultController::setView方法代码示例

本文整理汇总了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();
 }
开发者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::setView方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。