本文整理汇总了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();
}
示例2: beforeFilter
public function beforeFilter()
{
AuthComponent::$sessionKey = 'Auth.admins';
parent::beforeFilter();
$view_flg = array('0' => '非表示', '1' => '表示');
$this->set('view_flg', $view_flg);
}
示例3: beforeFilter
public function beforeFilter()
{
if (!$this->isAdmin()) {
$this->redirect(array('controller' => 'Admin', 'action' => 'index'));
return;
}
parent::beforeFilter();
}
示例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();
}
示例5: beforeFilter
public function beforeFilter()
{
AuthComponent::$sessionKey = 'Auth.admins';
parent::beforeFilter();
}
示例6: beforeFilter
public function beforeFilter()
{
$this->Breadcrumbs->add('Категории услуг и услуги', Router::url(array('plugin' => false, 'controller' => 'adminservice', 'action' => 'index')));
parent::beforeFilter();
}
示例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();
}
示例8: beforeFilter
public function beforeFilter()
{
$this->Breadcrumbs->add(__('Мастера'), Router::url(array('plugin' => false, 'controller' => 'adminuser', 'action' => 'index')));
parent::beforeFilter();
}
示例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();
}
示例10: beforeFilter
public function beforeFilter()
{
AuthComponent::$sessionKey = 'Auth.admins';
parent::beforeFilter();
$this->set("banner_size", $this->banner_size);
}