当前位置: 首页 > 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.hkea.cn/news/181664/

相关文章:

  • 临海市住房与城乡建设规划局 网站目前最新的营销模式有哪些
  • 高校建设网站的特色如何建立一个网站
  • 公司做网站域名归谁搜索引擎营销策划方案
  • 怎么做外贸个人网站seo综合查询工具可以查看哪些数据
  • 黑客网站盗qq百度seo公司整站优化
  • 网页设计代码不能运行seo的中文名是什么
  • 灵溪网站建设外贸网站谷歌seo
  • 网站开发系统设计产品推销
  • 不用代码做网站 知乎百度引流推广怎么收费
  • 怎么看网站后台什么语言做的产品全网营销推广
  • 可以做宣传图的网站网络销售管理条例
  • 做书籍封皮的网站制作网站平台
  • 1网站建设公司长沙网站到首页排名
  • 域名还在备案可以做网站吗seo培训班
  • 前程无忧网宁波网站建设类岗位北京网站快速排名优化
  • 如何优化网站内部链接站长工具站长之家
  • 阿里云网站建设的实训报告免费的自媒体一键发布平台
  • 关于加强网站建设的意见企业获客方式
  • 帮企业建设网站保密合同优化设计电子课本
  • 金山石化网站建设广告电话
  • 网站开发 前景网络推广代理
  • 温州整站推广咨询seo网站推广专员
  • 企业营销型网站团队百度seo排名优化教程
  • 安徽平台网站建设哪里好网络策划与营销
  • 做网站接广告赚钱么凡科建站和华为云哪个好
  • 成都网站建设科技公seo营销外包公司
  • 重庆有哪些做网站 小程序的百度搜索引擎的特点
  • 仁怀哪里可以做网站自动秒收录网
  • 重庆市建设局网站推广软件一键发送
  • 合肥网络推广网络运营网站seo诊断分析和优化方案