Get request page
@param  integer $default
@return int
18865
public function getRequestPage($default = 1)
    {
        if (empty($this->requestPage)) {
            $this->requestPage = abs($this->getRequestArg(
                $this->pageArgName,
                $default
            ));
        }

        return $this->requestPage;
    }
436284
public function get($key, $default = null)
    {
        if (array_key_exists($key, $this->params)) {
            return $this->params[$key];
        }

        return $default;
    }
58313
public function get(string $key, $default = null)
    {
        if ($this->exists($key)) {
            return $this->parameters[$key];
        }

        return $default;
    }
368427
private function dispatchUrl($default = '#')
    {
        if ($this->isType('url')) {
            return $this->getProperty('url');
        }

        if ($this->isType('route')) {
            list($route, $parameters) = $this->getProperty('route');

            return route($route, $parameters);
        }

        if ($this->isType('action')) {
            list($action, $parameters) = $this->getProperty('action');

            return action($action, $parameters);
        }

        return $default;
    }
1225968
public function getRequestFormat($default = 'html')
    {
        if (null === $this->format) {
            $this->format = $this->attributes->get('_format');
        }

        return null === $this->format ? $default : $this->format;
    }
570814
public function get($name, $default = null)
    {
        if($name == 'pages' && !isset($this->pages)) {
            $this->pages = $this->_pages();
        }
        
        return parent::get($name);
    }
718066
protected function _redirectUrl($default = null)
    {
        $request = $this->_request();

        if (!empty($request->getData('_redirect_url'))) {
            return $request->getData('_redirect_url');
        }
        if (!empty($request->getQuery('_redirect_url'))) {
            return $request->getQuery('_redirect_url');
        }
        if (!empty($request->getData('redirect_url'))) {
            return $request->getData('redirect_url');
        }
        if (!empty($request->getQuery('redirect_url'))) {
            return $request->getQuery('redirect_url');
        }

        return $default;
    }
853482
public function getParam($pos = 0, $default = '') {
        $pos = intval($pos);

        return isset($this->urlParams[ $pos ]) ? $this->urlParams[ $pos ] : $default;
    }
648701
public function url($default = 'home')
    {
        $url = $this->getController()->plugin('url');
        $route = $this->getSession()->route;
        if (null === $route) {
            return $url->fromRoute($default);
        }
        return $url->fromRoute($route->getMatchedRouteName(), 
            $route->getParams());
    }
779022
public function & get($key = null, $default = null)
	{
		if (is_null($default) and func_num_args() === 1)
		{
			return $this->_view->get($key);
		}
		return $this->_view->get($key, $default);
	}
1293843
protected function getServerParameter($parameter, ServerRequestInterface $request, $default = null)
    {
        return isset($request->getServerParams()[$parameter]) ? $request->getServerParams()[$parameter] : $default;
    }
938362
public function getRequestData($key = null, $default = null)
    {
        if (!is_null($key)) {
            if (isset($this->requestData[$key])) {
                return $this->requestData[$key];
            } else {
                return $default;
            }
        } else {
            return $this->requestData;
        }
    }
1151147
public function getRequestParam(string $key, $default = null)
  {
    return $this->getQueryParam($key)   ?: 
           $this->getBodyParam($key)    ?: 
           $this->getUploadedFile($key) ?: $default;
  }
1219056
public function getParam($name, $default = null)
    {
        if (isset($this->params[$name])) {
            return $this->params[$name];
        }

        return $default;
    }
558396
protected function getQueryStringParameter($parameter, ServerRequestInterface $request, $default = null)
    {
        return isset($request->getQueryParams()[$parameter]) ? $request->getQueryParams()[$parameter] : $default;
    }
550247
public function get($parameter, $default = null)
    {
        if ('link' == $parameter) {
            return $this->getLink();
        }

        return isset($this->config[$parameter]) ? $this->config[$parameter] : $default;
    }
686519
public function getRequestedController($default = null)
	{
		if (property_exists($this, 'app') && is_object($this->app) && property_exists($this->app, 'controller')) {
			return $this->app->controller;
		} elseif (!empty($default)) {
			return $default;
		} else {
			$reflect = new \ReflectionClass($this);
			return strtolower($reflect->getShortName());
		}
	}