SearchModel::getPage PHP Method

getPage() public method

获取分页数,默认为1
public getPage ( ) : integer
return integer 分页数
    public function getPage()
    {
        return !empty($_GET[C('VAR_PAGE')]) && $_GET[C('VAR_PAGE')] > 0 ? intval($_GET[C('VAR_PAGE')]) : 1;
    }