src/Leevel/Database/Select.php
public function pageHtml(int $currentPage, int $perPage = 10, bool $flag = false, string $column = '*', array $option = []): array
    {
        $page = new Page($currentPage, $perPage, $this->pageCount($column), $option);

        return [
            $page,
            $this
                ->limit($page->getFromRecord(), $perPage)
                ->findAll($flag),
            self::PAGE => true,
        ];
    }
public function pageHtml(int $currentPage, int $perPage = 10, bool $flag = false, string $column = '*', array $option = []): array
    {
        $page = new Page($currentPage, $perPage, $this->pageCount($column), $option);

        return [
            $page,
            $this
                ->limit($page->getFromRecord(), $perPage)
                ->findAll($flag),
            self::PAGE => true,
        ];
    }
分页查询.
可以渲染 HTML.

@param int    $currentPage
@param int    $perPage
@param bool   $flag
@param string $column
@param array  $option

@return array