CakePHP 查询总结

返回

$this->Post->buildQuery();

返回:

    Array
    (
        [conditions] =>
        [fields] =>
        [joins] => Array
            (
            )

        [limit] => 1
        [offset] =>
        [order] => Array
            (
                [0] =>
            )

        [page] => 1
        [group] =>
        [callbacks] => 1
    )

当传入参数

$this->Post->buildQuery('all',array('page'=>'5','limit'=>7));

返回:

    Array
    (
        [conditions] =>
        [fields] =>
        [joins] => Array
            (
            )

        [limit] => 7
        [offset] => 28
        [order] => Array
            (
                [0] =>
            )

        [page] => 5
        [group] =>
        [callbacks] => 1
    )
原文地址:https://www.cnblogs.com/mafeifan/p/3484602.html