Answer the question
In order to leave comments, you need to log in
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
If this is not a trendy SPA, then the function of angular and other reacts is to get in the way.
Here is an article on habré. It is a translation. I think there is something that interests you.
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 questionAsk a Question
731 491 924 answers to any question