Jump to content

Custom Form Type templating


Recommended Posts

Hello,

 

I added form type and now i want add template for this field.. but when i add this in services.yml

twig:
	form_themes:
		- '%kernel.project_dir%/modules/mymodule/src/View/myfieldview.html.twig'

after that, when i debug twig from command line this theme is registered but not work 😕

When i add this same code to app/config/config.yml in twig section all work fine

 

Anyone know how to improve this?

Regards

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...