本文整理汇总了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();
}
示例2: beforefilter
function beforefilter()
{
parent::beforefilter();
//$this->Auth->allow();
$allowed = array("login", "logout", "forgotpassword", "confirmation", "getcountrystatecity");
$this->checklogin($allowed);
$this->adminbreadcrumb();
}
示例3: beforeFilter
function beforeFilter()
{
if (isset($this->params['url']['shop'])) {
parent::beforefilter();
} else {
Configure::load('shopify');
$this->initLanguage();
}
}
示例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();
}
示例5: beforeRender
function beforeRender()
{
parent::beforefilter();
}
示例6: beforefilter
function beforefilter()
{
parent::beforefilter();
$admin = $this->Session->read("admin");
$this->checklogin();
}
示例7: beforeRender
public function beforeRender()
{
parent::beforefilter();
//set the layout
$this->layout = 'new_tall_header_w_sidebar';
}
示例8: beforefilter
function beforefilter()
{
parent::beforefilter();
//$this->Book->changeOddsAllContents(8);
}
示例9: beforefilter
function beforefilter()
{
parent::beforefilter();
$this->checklogin();
}
示例10: beforefilter
function beforefilter()
{
parent::beforefilter();
$this->checklogin();
$this->Auth->allow("search", "view", "viewratings", "viewrecent", "viewallcourse", "userrelatedcourses", "ipnhandler", "updatecoursecontent");
}
示例11: beforefilter
function beforefilter()
{
parent::beforefilter();
$this->checksession();
$this->san = new sanitize();
}
示例12: beforefilter
function beforefilter()
{
parent::beforefilter();
$this->checklogin();
$this->adminbreadcrumb();
}
示例13: beforefilter
function beforefilter()
{
parent::beforefilter();
$this->Auth->allow();
}