N
N
Nikolai Egorov2017-08-27 21:59:58
symfony
Nikolai Egorov, 2017-08-27 21:59:58

Why is the views folder in app/resourses/views and not in a bundle folder like AppBundle/views?

Why, for what reasons, principle, is the views folder located in app/resourses/views, and not in a folder with a bundle, such as AppBundle/views? Indeed, in fact, views also belong to bundles, like the same Entity or controllers.
What is the logic?
PS: Somewhere I read it, but I don’t remember where, that in 4.0 there will be no separation into src and app folders.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
voronkovich, 2017-08-27
@voronkovich

For those reasons that the bundle should contain reusable code. AppBundle is not inherently one. Therefore, in 4.0 the AppBundle will be abolished, there will be only the src/ directory, which will contain the application code. The app/ folder will be replaced by config/.
BTW: You can store templates in AppBundle/Resources/views if you like. But why?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question