D
D
Denis Bondarenko2017-09-27 10:59:29
JavaScript
Denis Bondarenko, 2017-09-27 10:59:29

In what cases should you use an MVC frontend and MVC backend framework together?

I’ll make a reservation right away that my knowledge of MVC front-end frameworks is rather poor, so the wording of the question can be a little confusing.
Here I use the MCV framework in PHP, for example, Symfony. The model is entities, in the controllers I have business logic, in them I filter and dump data onto the view - twig templates. Accordingly, depending on the parameters specified in the get-request or directly in the route, different data is selected, and it seems that on the twig-view, I just have to set the conditions / cycles.
In what cases would I need a front-end framework like AngularJS? Are there any typical examples of such usage?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Abcdefgk, 2017-09-27
@Abcdefgk

If this is not a trendy SPA, then the function of angular and other reacts is to get in the way.

F
Fedor Sazonov, 2017-09-27
@Revenant20

Here is an article on habré. It is a translation. I think there is something that interests you.

K
kulaeff, 2017-09-27
@kulaeff

Rendering pages on the server and SPA are mutually exclusive things. Either you render pages on the server and then you do not need SPA, or vice versa - on the server you have only one view (twig template), and everything else is rendered on the server side using angular or other frameworks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question