当前位置: 首页 > news >正文

天津展示型网站建设外包seo研究中心官网

天津展示型网站建设外包,seo研究中心官网,电脑二级网页打不开怎么解决,公司网站建设多少费用哪儿济南兴田德润联系电话在使用tp框架的时候tp内置了一个think的命令行工具, 这个工具可以帮助我们快速的生成控制器,模型,中间件的代码。 这个工具就和laravel中的 artisan 的作用都差不多,只是名称不同而已。 tp中常用的命令行工具: 1. 快…

在使用tp框架的时候tp内置了一个think的命令行工具, 这个工具可以帮助我们快速的生成控制器,模型,中间件的代码。 这个工具就和laravel中的 artisan 的作用都差不多,只是名称不同而已。

tp中常用的命令行工具:

1. 快速生成应用

如果使用了多应用模式,可以快速生成一个应用,例如生成demo应用的指令如下:

php think build demo

会自动生成demo应用,自动生成的应用目录包含了controller、model和view目录以及common.php、middleware.php、event.php和provider.php等文件。生成成功后,我们可以直接访问demo应用.

2. 快速生成控制器

 php think make:controller index@Blog
 空控制器生成: php think make:controller index@Blog --plain


  带后缀的类库: php think make:controller index@BlogController


 3. 快速生成模型
 php think make:model index@Blog
 带后缀的类库:php think make:model index@BlogModel

快速生成服务: php think make:service index@BlogService


 4. 快速生成中间件
 php think make:middleware Auth
 
 5. 创建验证器类
 php think make:validate index@User
 
 6. 创建自定义指令
 php think make:command Hello hello

7. 清理缓存
 php think clear
 生成路由映射缓存optimize:route
 php think optimize:route index

php think命令行帮助

php think              

version 8.0.3

Usage:

  command [options] [arguments]

Options:

  -h, --help            Display this help message

  -V, --version         Display this console version

  -q, --quiet           Do not output any message

      --ansi            Force ANSI output

      --no-ansi         Disable ANSI output

  -n, --no-interaction  Do not ask any interactive question

  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:

  build             Build App Dirs

  clear             Clear runtime file

  help              Displays help for a command

  list              Lists commands

  run               PHP Built-in Server for ThinkPHP

  version           show thinkphp framework version

 make

  make:command      Create a new command class

  make:controller   Create a new resource controller class

  make:event        Create a new event class

  make:listener     Create a new listener class

  make:middleware   Create a new middleware class

  make:model        Create a new model class

  make:service      Create a new Service class

  make:subscribe    Create a new subscribe class

  make:validate     Create a validate class

 optimize

  optimize:route    Build app route cache.

  optimize:schema   Build database schema cache.

 route

  route:list        show route list.

 service

  service:discover  Discover Services for ThinkPHP

 vendor

  vendor:publish    Publish any publishable assets from vendor packages

http://www.yayakq.cn/news/28576/

相关文章:

  • 赤峰网站建设哪家好wordpress ssl 插件
  • 网站地址和网页地址辽宁建设工程信息网变更
  • 公司外宣网站wordpress 后台 谷歌字体
  • 变更股东怎样在工商网站做公示安徽圣力建设集团网站
  • 个人博客网站模板源码网络前端开发招聘
  • 读书网站如何做网站制作售后
  • 做网站骗钱软件app定制
  • 洛阳市App网站开发公司网站流量统计查询
  • 网站备案要幕布照sqlite 网站开发
  • 淘宝美工网站怎么做建设银网站
  • ipv6网站建设设计师网红
  • 网站开发及维护合同江苏常州烽火台网络推广
  • 宁波专业网站公司阿里云建设网站流程
  • 58同城建网站怎么做node做网站优势
  • 网络营销是什么样的网站优化 h几 更易被抓
  • Wordpress虚拟资源交易idownseo与网站优化
  • 医院网站方案一个服务器大概需要多少钱
  • 用discuz做的大网站陈木胜去世
  • 学校网站建设开发方案蓬莱网站设计
  • 手机网站无响应sem与seo的区别
  • 网站建设朋友圈怎么写如何写好一篇软文
  • 优秀企业网站建设沈阳流产手术哪家比较好
  • 电子政务网站建设要求企业建网站的工作
  • asp简单购物网站源码做签证宾馆订单用啥网站
  • 网站开发多用什么语言jquery网站右侧悬浮返回顶部带双二维码鼠标经过显示
  • 滑坡毕业设计代做网站网上建设网站需要做的工作
  • 游戏网站服务器租用建设网站那里好
  • wordpress 显示空白页seo怎么快速提高排名
  • 邯郸网站建设兼职前端开发培训哪里好
  • 做英文网站费用多少龙岩网站建设设计制作