首先使用引用分页类 1、 1 use yii\data\Pagination; 2、控制器 1 //分页跳转 2 public function actionPagego(){ 3 $model = Knowledge::find(); 4 //原生sql语句使用分页 5 $sql = "SELEC ...
分类:
其他好文 时间:
2016-04-07 20:30:26
阅读次数:
125
yii2 无限级分类 模型层 <?php namespace frontend\models; use Yii; /** * This is the model class for table "region". * * @property integer $region_id * @propert ...
分类:
其他好文 时间:
2016-04-07 20:17:13
阅读次数:
115
配置文件内容:input{
stdin{
}
}
output{
email{
port=>"25"
address=>"smtp.qq.com"
username=>"1820034099@qq.com"
password=>"*********"
authentication=>"plain"
use_tls=>false
from=>"1820034099@qq.com"
subject=>"Warning:youhaveanerror!"
..
分类:
其他好文 时间:
2016-04-07 18:48:02
阅读次数:
588
MySQL 数据库常用命令 1、MySQL常用命令 create database name; 创建数据库 use databasename; 选择数据库 drop database name 直接删除数据库,不提醒 show tables; 显示表 describe tablename; 表的详细 ...
分类:
数据库 时间:
2016-04-07 18:31:02
阅读次数:
236
How to Copy: Select the content in terminal use your mouse , and then use Ctrl + Shift + C to copy the content. How to Paste: Use Ctrl + Shift + V to ...
分类:
系统相关 时间:
2016-04-07 14:47:46
阅读次数:
404
1 /** 2 * Created by DaGuo on 2016/4/7. 3 */ 4 5 'use strict' 6 7 import React,{ 8 Component, 9 View, 10 Text, 11 ListView, 12 13 } from 'react-native ...
分类:
其他好文 时间:
2016-04-07 13:26:06
阅读次数:
152
/* * Copyright (C) 2010 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this fil ...
Let's see how to track index when we use 'ngFor: #i = index, simple as that :) ...
分类:
其他好文 时间:
2016-04-07 06:58:11
阅读次数:
128
You can also use Promise for http: So for the service, you need to call toPromise() method: Then in your controller, you can get the Promise back: But ...
分类:
Web程序 时间:
2016-04-07 06:57:38
阅读次数:
122
js 执行时间function use_time(func) { var start = new Date().getTime(); console.log(start); func(); var end = new Date().getTime(); console.log(end); conso ...
分类:
Web程序 时间:
2016-04-06 23:20:18
阅读次数:
244