简体   繁体   English

Cake 3.x如何在其他供应商中触发烘焙模板?

[英]Cake 3.x How do I trigger a bake template in another vendor?

  1. cake version: 3.1.2 蛋糕版本:3.1.2
  2. crud version: 4.2.0 Crud版本:4.2.0

Inside vendor/cakephp/bake/src/Shell/Task, there is a ControllerTask.php code here 内部供应商/ CakePHP的/烘/ src目录/壳牌/任务,有ControllerTask.php代码这里

Inside vendor/cakephp/bake/src/Template/Bake/Controller, there is a controller.ctp code here 内部供应商/ CakePHP的/烘/ src目录/模板/烘烤/控制器,还有一个controller.ctp代码这里

Inside vendor/friendsofcake/crud/src/Template/Bake/Controller, there is a controller.ctp code here 内部供应商/ friendsofcake /污物/ src目录/模板/烘烤/控制器,还有一个controller.ctp代码这里

My question is how do I execute the controller bake template inside a different vendor without copy and pasting the code into my App/Template/Bake as suggested by http://book.cakephp.org/3.0/en/bake/development.html#creating-new-bake-command-options ? 我的问题是如何执行其他供应商内部的控制器烘焙模板,而无需按照http://book.cakephp.org/3.0/en/bake/development.html的建议将代码复制并粘贴到我的App / Template / Bake中#creating-new-bake-command-options吗?

I would like to be able to do something like bin/cake bake crud.controller users for eg 我想能够做例如bin/cake bake crud.controller users的操作

Is that even possible? 那有可能吗?

做这个

bin/cake bake controller users --theme Crud

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM