lib/pagination.php
static public function findCurrentPage($key='page') {
        $f3 = \Base::instance();
        return $f3->exists('PARAMS.'.$key) ?
            preg_replace("/[^0-9]/", "", $f3->get('PARAMS.'.$key)) : 1;
    }
static public function findCurrentPage($key='page') {
        $f3 = \Base::instance();
        return $f3->exists('PARAMS.'.$key) ?
            preg_replace("/[^0-9]/", "", $f3->get('PARAMS.'.$key)) : 1;
    }
static public function findCurrentPage ( $ key = 'page' ) { $ f3 = \ Base :: instance ( ) ; return $ f3 -> exists ( 'PARAMS.' . $ key ) ? preg_replace ( "/[^0-9]/" , "" , $ f3 -> get ( 'PARAMS.' . $ key ) ) : 1 ; }
extract the current page number from the route parameter token
@param string $key
@return int|mixed
extract the current page number from the route parameter token