public function current($model = null)
    {
        $params = $this->params($model);

        if (isset($params['page'])) {
            return $params['page'];
        }

        return 1;
    }
public function current($model = null)
    {
        $params = $this->params($model);

        if (isset($params['page'])) {
            return $params['page'];
        }

        return 1;
    }
public function current ( $ model = null ) { $ params = $ this -> params ( $ model ) ; if ( isset ( $ params [ 'page' ] ) ) { return $ params [ 'page' ] ; } return 1 ; }
Gets the current page of the recordset for the given model

@param string|null $model Optional model name. Uses the default if none is specified.
@return int The current page number of the recordset.
@link https://book.cakephp.org/3.0/en/views/helpers/paginator.html#checking-the-pagination-state
Gets the current page of the recordset for the given model