0
根据https://symfony.com/doc/current/bundles/SensioGeneratorBundle/index.html我没有复制和修改这样的模板:symfony的2.8倍率CRUD骨架模板
/var/www/mdm/app/Resources/SensioGeneratorBundle$ tree
.
└── skeleton
└── crud
├── actions
│ ├── delete.php.twig
│ ├── edit.php.twig
│ ├── index.php.twig
│ ├── new.php.twig
│ └── show.php.twig
├── controller.php.twig
└── views
├── index.html.twig.twig
├── others
│ └── record_actions.html.twig.twig
└── show.html.twig.twig
而现在,当我doctrine:generate:crud --entity....
的意见都位于在/ app /资源/视图/,而不是下/src/../.../Resources/views/...
我宁愿在/src/Me/MyBundle .
的意见我已在发电机声明如下
if (in_array($this->getEnvironment(), array('dev', 'test'), true)) {
...
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
和我的包是在Prod环境下。
当我复制/app/Resources/SensioGeneratorBundle
下的文件时出现了什么问题?为什么生成的文件将在/app
下运行?
找出为什么...无关发电机.... :(HTTP://计算器.COM /问题/ 34314076 /新选项 - 问 - 关于 - 多应用时产生-A-捆以来,symfo – user3720609