PermissionsController::beforeFilter PHP Method

beforeFilter() public method

beforeFilter
public beforeFilter ( ) : oid
return oid
    public function beforeFilter()
    {
        parent::beforeFilter();
        if ($this->request->params['prefix'] == 'admin') {
            $this->set('usePermission', true);
        }
        $this->crumbs[] = array('name' => 'アクセス制限設定管理', 'url' => array('controller' => 'permissions', 'action' => 'index', $this->request->params['pass'][0]));
    }