petkopara / PetkoparaCrudGeneratorBundle

Symfony3 CRUD generator bundle with pagination, filter, bulk actions and Twitter bootstrap 3.3.6 features.
MIT License
70 stars 17 forks source link

Customize PetkoparaCrudGeneratorBundle #37

Open diegokrein opened 7 years ago

diegokrein commented 7 years ago

Hello one question. How to override the skeleton of PetkoparaCrudGeneratorBundle in Symfony 3. I write the app / Resources / SensioGeneratorBundle / skeleton structure and redefine the controller.php.twig and then when I run the php bin / console command petkopara: generate: crud does not generate the controller with The new definitions. Is this possible to do.

petkopara commented 7 years ago

I think your path is wrong.

From this doc http://symfony.com/doc/current/templating/overriding.html

In order to overwrite controller.php.twig you need to create - app/Resources/PetkoparaCrudGeneratorBundle/skeleton/crud/controller.php.twig in you project.