LOADING

Thinkphp5 控制器操作数据库

<?php
/**

  • Created by PhpStorm.
  • User: 普宜合
  • Date: 2017/11/15
  • Time: 16:22
    */

namespace appapicontroller;

use thinkcontroller;
use thinkDb;必须使用Db

class CheckUser
{

protected $user;
public function __construct()
{
    $this->user = Db::table('user');

}

}

标签: Thinkphp5

添加新评论