Answer the question
In order to leave comments, you need to log in
Is it possible in Symfony3 to load Twig for only one group of routes?
Such a question - now Symfony is used as a true api, and spits on Jason, but I also want to generate forms from models on it (because angular does not know anything about the types of fields in the database, and I don’t want to hardcode forms in html).
Is there any way to make a group of forms routes, and load the twig only for them?
Thank you.
Answer the question
In order to leave comments, you need to log in
You can create your own separate environment - symfony.com/doc/current/cookbook/configuration/env...
And in the AppKernel.php file specify those components that you want to load only for this environment. Well, in order not to make requests to site.dev/my_env.php/api/urls add rewrites to htaccess .
*if I understand your question correctly
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question