public function params($model = null)
    {
        $request = $this->_View->getRequest();

        if (empty($model)) {
            $model = $this->defaultModel();
        }
        if (!$request->getParam('paging') || !$request->getParam('paging.' . $model)) {
            return [];
        }

        return $request->getParam('paging.' . $model);
    }
public function params($model = null)
    {
        $request = $this->_View->getRequest();

        if (empty($model)) {
            $model = $this->defaultModel();
        }
        if (!$request->getParam('paging') || !$request->getParam('paging.' . $model)) {
            return [];
        }

        return $request->getParam('paging.' . $model);
    }
public function params ( $ model = null ) { $ request = $ this -> _View -> getRequest ( ) ; if ( empty ( $ model ) ) { $ model = $ this -> defaultModel ( ) ; } if ( ! $ request -> getParam ( 'paging' ) || ! $ request -> getParam ( 'paging.' . $ model ) ) { return [ ] ; } return $ request -> getParam ( 'paging.' . $ model ) ; }
Gets the current paging parameters from the resultset for the given model

@param string|null $model Optional model name. Uses the default if none is specified.
@return array The array of paging parameters for the paginated resultset.
Gets the current paging parameters from the resultset for the given model