Thinkphp 相关命令

maogu8个月前Thinkphp302

Thinkphp

安装稳定版

composer create-project topthink/think tp

本地调试

php think run -H tp.com -p 80

开启多应用

composer require topthink/think-multi-app

快速生成多应用

php think build admin

快速生成控制器

php think make:controller [email protected]

快速生成空控制器

php think make:controller [email protected] --plain

数据迁移工具

composer require topthink/think-migration

生成视图

composer require topthink/think-view

验证码

composer require topthink/think-captcha
$request->param();
$request->get();
$request->param('id');
$request->param('id',0) //默认0
$request->param('id',1,'intval') //过滤为整形 空就是1
input('id')
  input('get.id')

发表评论    

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。