一、Model 1、在application下,新建 common\model 文件夹,在model文件夹里面新建 TableName.php(TableName为表名) 2、在TableName.php里面写: <?phpnamespace app\common\model;use think\M ...
分类:
Web程序 时间:
2020-03-29 10:40:10
阅读次数:
65
phpstudy安装ThinkPHP5框架 步骤: 1,进入ThinkPHP官网,下载完整版本:http://www.thinkphp.cn/ 2,解压出下载的 ThinkPHP 复制所有文件 3,在 phpstudy 安装路径下的找到 www 文件夹,新建 tp5 文件夹,将解压的所有 Think ...
分类:
Web程序 时间:
2020-03-28 17:51:33
阅读次数:
277
Using Dependency Injection without any DI Library 回答1 I think that it would be much better to start with Pure DI instead of using ASP.NET vNext's buil ...
分类:
其他好文 时间:
2020-03-27 19:58:00
阅读次数:
90
Problem : Given an array nums and a value val, remove all instances of that value in place and return the new length. Do not allocate extra space for ...
分类:
其他好文 时间:
2020-03-26 01:25:20
阅读次数:
65
大约受到《Don't make me think》的影响,不少设计师/产品人坚信——体验就是让一切简单到极致。不禁让人开始怀疑,体验设计要真的只是做减法,那岂不「人人都是设计师」咯? 假设这个结论成立——体验就是让一切都变得越来越简单,而纸尿裤、一次性筷子、速溶咖啡等等都是「简单化」的代表作,我们都 ...
分类:
其他好文 时间:
2020-03-25 10:36:27
阅读次数:
158
<?php namespace app\model; use think\Model; class User1 extends Model { public function getStatusTextAttr($value,$data){ $status = [ '1'=>'正常', '2'=>' ...
分类:
其他好文 时间:
2020-03-25 01:23:38
阅读次数:
166
1 继承BaseController 2 引入app\Request 使用依赖注入的方式 $request->param() 3 助手函数 Input() 4 使用 request()->param() 方法 5 使用think\facade\Request 静态方法 <?php namespace ...
分类:
其他好文 时间:
2020-03-24 23:21:31
阅读次数:
831
You'll often find yourself going through a tutorial where you need to copy some code from a webpage and create a file and paste the contents onto your ...
分类:
其他好文 时间:
2020-03-23 16:49:15
阅读次数:
72
You are trapped in a 3D dungeon and need to find the quickest way out! The dungeon is composed of unit cubes which may or may not be filled with rock. ...
分类:
其他好文 时间:
2020-03-22 19:57:31
阅读次数:
68
version 6.0.2 Usage: command [options] [arguments] Options: -h, --help 显示此帮助消息 -V, --version 显示此控制台版本 -q, --quiet 不输出任何消息 --ansi 强制ANSI输出 -... ...
分类:
Web程序 时间:
2020-03-22 17:50:44
阅读次数:
713