qqa4560354
- qqa4560354 2017-01-25 已签到连续签到1天,获得了5个金钱
- qqa4560354 2017-01-21 已签到连续签到1天,获得了5个金钱
- qqa4560354 2017-01-19 已签到连续签到4天,获得了20个金钱
- qqa4560354 关注了Danmo
- qqa4560354 赞了回答
把数组转成model了,有点好奇,数组为什么要分布呢,只为了方便浏览吗?
- qqa4560354 回复了 zhoupenghui 的回答
根据ActiveDataProvider中可以知道:
/** * @var QueryInterface the query that is used to fetch data models and [[totalCount]] * if it is not explicitly set. */ public $query;
说明$query数据是model
@zhoupenghui 您这个我看了,主要我这个需求,倒不是分页的问题,而且我用了一个数组分页的函数,还是有点问题
- qqa4560354 赞了回答
根据ActiveDataProvider中可以知道:
/** * @var QueryInterface the query that is used to fetch data models and [[totalCount]] * if it is not explicitly set. */ public $query;
说明$query数据是model
- qqa4560354 2017-01-18 已签到连续签到3天,获得了15个金钱