Reputation: 1723
I work on existing symfony project and I want to change something in view in admin (backend app) which is automatically generated. I found that I can change views in /lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/data/generator/sfDoctrineModule/admin/template/templates/...
I think it is not good idea to edit this files. How can I change these templates?
Upvotes: 0
Views: 193
Reputation: 60413
You can override the template at the module level. After visiting the page in question look in the cache directory and check out the autogenerated code there for example:
cache/
backend/
modules/
/autoMyModule/
templates/
You can then figure out which file it is you need to change and then create that file in apps/backend/myModule/templates
and override what you need.
Upvotes: 2