P
P
prozrost2016-10-23 10:39:07
Yii
prozrost, 2016-10-23 10:39:07

How to build MVC application architecture using REST?

Is it possible to get data from facebook, or user pictures from instagram just by sending a GET request? Or do I need to use the Resource Data API? And yet, how to build an application architecture in this case? I saw examples from yii2 and there are queries to the database in the model, in the display view, in the controller a query call with parameter substitution. If I want to get data not from the database, but from the server, then do the same? Requests in the model, in the controller, the call of the request, and in the display view?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2016-10-23
@prozrost

No.
Yes.
How will it be easier for you.
Yes.
Yes.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question