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


PHP AppController::beforefilter方法代码示例

本文整理汇总了PHP中AppController::beforefilter方法的典型用法代码示例。如果您正苦于以下问题:PHP AppController::beforefilter方法的具体用法?PHP AppController::beforefilter怎么用?PHP AppController::beforefilter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在AppController的用法示例。


在下文中一共展示了AppController::beforefilter方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: beforefilter

 function beforefilter()
 {
     parent::beforefilter();
     $allowed = array();
     $this->checklogin($allowed);
     $this->adminbreadcrumb();
 }
开发者ID:shivram2609,项目名称:e-leran,代码行数:7,代码来源:CitiesController.php

示例2: beforefilter

 function beforefilter()
 {
     parent::beforefilter();
     //$this->Auth->allow();
     $allowed = array("login", "logout", "forgotpassword", "confirmation", "getcountrystatecity");
     $this->checklogin($allowed);
     $this->adminbreadcrumb();
 }
开发者ID:shivram2609,项目名称:bbm,代码行数:8,代码来源:AdminsController.php

示例3: beforeFilter

 function beforeFilter()
 {
     if (isset($this->params['url']['shop'])) {
         parent::beforefilter();
     } else {
         Configure::load('shopify');
         $this->initLanguage();
     }
 }
开发者ID:JamieS,项目名称:Pail---Shovel,代码行数:9,代码来源:pages_controller.php

示例4: beforefilter

 function beforefilter()
 {
     if ($this->params['action'] == 'login') {
         if ($this->Cookie->read('Auth.User') && !$this->Session->read("Auth.User.id")) {
             $this->login();
         }
     }
     if ($this->params['action'] == 'logout') {
         $this->logout();
     }
     parent::beforefilter();
     $this->Auth->allow("login", "logout", "signup", "newpassword", "requestaccount", "forgotpassword", "getindustry", "getstates", "confirmregisteration", "Captcha", "choosetype", "viewprofile", "loginwith");
     $admin = $this->Session->read("admin");
     $this->checklogin();
 }
开发者ID:shivram2609,项目名称:e-leran,代码行数:15,代码来源:UsersController.php

示例5: beforeRender

 function beforeRender()
 {
     parent::beforefilter();
 }
开发者ID:RobertWHurst,项目名称:Telame,代码行数:4,代码来源:groups_controller.php

示例6: beforefilter

 function beforefilter()
 {
     parent::beforefilter();
     $admin = $this->Session->read("admin");
     $this->checklogin();
 }
开发者ID:shivram2609,项目名称:e-leran,代码行数:6,代码来源:OrdersController.php

示例7: beforeRender

 public function beforeRender()
 {
     parent::beforefilter();
     //set the layout
     $this->layout = 'new_tall_header_w_sidebar';
 }
开发者ID:RobertWHurst,项目名称:Telame,代码行数:6,代码来源:settings_controller.php

示例8: beforefilter

 function beforefilter()
 {
     parent::beforefilter();
     //$this->Book->changeOddsAllContents(8);
 }
开发者ID:shivram2609,项目名称:bbm,代码行数:5,代码来源:BooksController.php

示例9: beforefilter

 function beforefilter()
 {
     parent::beforefilter();
     $this->checklogin();
 }
开发者ID:shivram2609,项目名称:e-leran,代码行数:5,代码来源:CategoriesController.php

示例10: beforefilter

 function beforefilter()
 {
     parent::beforefilter();
     $this->checklogin();
     $this->Auth->allow("search", "view", "viewratings", "viewrecent", "viewallcourse", "userrelatedcourses", "ipnhandler", "updatecoursecontent");
 }
开发者ID:shivram2609,项目名称:e-leran,代码行数:6,代码来源:CoursesController.php

示例11: beforefilter

 function beforefilter()
 {
     parent::beforefilter();
     $this->checksession();
     $this->san = new sanitize();
 }
开发者ID:vad,项目名称:taolin,代码行数:6,代码来源:backgrounds_controller.php

示例12: beforefilter

 function beforefilter()
 {
     parent::beforefilter();
     $this->checklogin();
     $this->adminbreadcrumb();
 }
开发者ID:shivram2609,项目名称:e-leran,代码行数:6,代码来源:UserdetailsController.php

示例13: beforefilter

 function beforefilter()
 {
     parent::beforefilter();
     $this->Auth->allow();
 }
开发者ID:shivram2609,项目名称:e-leran,代码行数:5,代码来源:PagesController.php


注:本文中的AppController::beforefilter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。