摘要: 分页数据 //在模型中计算出总数量 $count=$this->find()->where()->count(); //用总条数和设定的每页个数实例化一个yii\data\Pagination类 $page=new Pagination([totalCount' => $count,'defaultPageSize' => 2,]); //使用分页类的属性搜索想要的数据,并返回数据 $re... 阅读全文
posted @ 2016-06-21 17:44 雨落知音 阅读(139) 评论(0) 推荐(0) 编辑
摘要: var sys = require('sys'); var Client = require('mysql').Client; var client = new Client(); client.user = 'someuser'; client.password = 'password'; con 阅读全文
posted @ 2016-06-21 09:10 雨落知音 阅读(410) 评论(0) 推荐(0) 编辑