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


PHP AdminController::beforeFilter方法代码示例

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


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

示例1: beforeFilter

 public function beforeFilter()
 {
     $this->admin_path_title_name = "Управление городами и районами";
     $this->set('title', Configure::read('SITENAME') . " - " . Configure::read('ADMIN_PANEL') . " - " . $this->admin_path_title_name);
     $this->Breadcrumbs->add('Управление городами и районами', Router::url(array('plugin' => false, 'controller' => 'admingeo', 'action' => 'index')));
     parent::beforeFilter();
 }
开发者ID:homoastricus,项目名称:webcab,代码行数:7,代码来源:AdmingeoController.php

示例2: beforeFilter

 public function beforeFilter()
 {
     AuthComponent::$sessionKey = 'Auth.admins';
     parent::beforeFilter();
     $view_flg = array('0' => '非表示', '1' => '表示');
     $this->set('view_flg', $view_flg);
 }
开发者ID:sanrentan,项目名称:sanrentan,代码行数:7,代码来源:ManageInformationsController.php

示例3: beforeFilter

 public function beforeFilter()
 {
     if (!$this->isAdmin()) {
         $this->redirect(array('controller' => 'Admin', 'action' => 'index'));
         return;
     }
     parent::beforeFilter();
 }
开发者ID:Mirocow,项目名称:gpz,代码行数:8,代码来源:AdminUsersController.php

示例4: beforeFilter

 public function beforeFilter()
 {
     parent::beforeFilter();
     if ($this->request->is(array('post', 'put'))) {
         $this->request->data('Settings.id', 1);
         $this->Settings->save($this->request->data);
         $this->Flash->success(__('Settings have been successfully saved'));
         return $this->redirect(array('action' => $this->request->action));
     }
     $this->request->data = $this->Settings->getData();
 }
开发者ID:Fyr,项目名称:yday,代码行数:11,代码来源:AdminSettingsController.php

示例5: beforeFilter

 public function beforeFilter()
 {
     AuthComponent::$sessionKey = 'Auth.admins';
     parent::beforeFilter();
 }
开发者ID:sanrentan,项目名称:sanrentan,代码行数:5,代码来源:ManagesController.php

示例6: beforeFilter

 public function beforeFilter()
 {
     $this->Breadcrumbs->add('Категории услуг и услуги', Router::url(array('plugin' => false, 'controller' => 'adminservice', 'action' => 'index')));
     parent::beforeFilter();
 }
开发者ID:homoastricus,项目名称:master_project,代码行数:5,代码来源:AdminserviceController.php

示例7: beforeFilter

 public function beforeFilter()
 {
     $this->Breadcrumbs->add('Настройки', Router::url(array('plugin' => false, 'controller' => 'adminoffer', 'action' => 'index')));
     $this->set('title', Configure::read('SITENAME') . " - " . Configure::read('ADMIN_PANEL') . " - " . $this->admin_path_title_name);
     parent::beforeFilter();
 }
开发者ID:homoastricus,项目名称:master_project,代码行数:6,代码来源:AdminsettingController.php

示例8: beforeFilter

 public function beforeFilter()
 {
     $this->Breadcrumbs->add(__('Мастера'), Router::url(array('plugin' => false, 'controller' => 'adminuser', 'action' => 'index')));
     parent::beforeFilter();
 }
开发者ID:homoastricus,项目名称:master_project,代码行数:5,代码来源:AdminuserController.php

示例9: beforeFilter

 public function beforeFilter()
 {
     $this->admin_path_title_name = "Управление городами и районами";
     $this->set('title', Configure::read('SITENAME') . " - " . Configure::read('ADMIN_PANEL') . " - " . $this->admin_path_title_name);
     parent::beforeFilter();
 }
开发者ID:homoastricus,项目名称:master_project,代码行数:6,代码来源:AdmingeoController.php

示例10: beforeFilter

 public function beforeFilter()
 {
     AuthComponent::$sessionKey = 'Auth.admins';
     parent::beforeFilter();
     $this->set("banner_size", $this->banner_size);
 }
开发者ID:sanrentan,项目名称:sanrentan,代码行数:6,代码来源:ManageAdTagsController.php


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