Sid February 2016

Where are the twig view files generated by Symfony's generate:crud command?

I have used Symfony's command line tool to generate CRUD functionality for an entity in my application.

According to the documentation the twig view files are based on templates within the Sensio Generator bundle.

Are a separate set of files are generated exclusively for that particular entity whenever the 'doctrine:generate:crud' command is run?

OR

No twig files are generated, all entities that have CRUD functionality generated using the command line tool use the twig template files in the Sensio Generator bundle.

If the former is correct, can anyone tell me the directory for these twig files pls?

I hope my question makes sense. Appreciate the help.

Answers


chalasr February 2016

All views created from the doctrine:generate:crud command will be generated in the following path :

app/Resources/views/entityName/

The rule is simple, a folder named like the Entity is created in the app/Resources/views directory, and all views of the CRUD are generated into.

Post Status

Asked in February 2016
Viewed 2,867 times
Voted 13
Answered 1 times

Search




Leave an answer