S
S
Sergey2015-11-06 16:28:29
Design patterns
Sergey, 2015-11-06 16:28:29

Question about MVC architecture?

There is a call to the index.php page
. It should display the news page.
She connects the news controller, and that in turn, the model and view.
The news was offered news and sent via ajax.
Does it contact the controller?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Sinitsyn, 2015-11-06
@a_u_sinitsin

C ) Any request is received by the controller.
M ) If it needs to interact with the data in any way, it calls the model.
V ) If he needs to present the result in any form, he refers to the form.
When the response is generated, the controller sends it back.
PS: One controller can access another controller.

I
inDeepCode, 2015-11-06
@inDeepCode

Yes. to controller

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question