M
M
Makar Gerasimov2016-08-23 18:36:28
Yii
Makar Gerasimov, 2016-08-23 18:36:28

MVC interface. Where to implement?

Good evening. Please forgive me for the stupid question. But I can't figure out where I can implement the interface for the model in the mvc pattern.
There is a separate socials module, this module has a standard crud, I need to make breeding models to work with api of different social networks.
The classes themselves for connecting and uploading data from the social networks API I connect to vendor. And now I would like to implement the functions themselves for unloading any data through these classes in the model (without connecting to the database table).
Actually the question is: am I moving in the right direction, and where can I create an interface for these models?
The structure is something like this:
e2fc862155b648ce864d88355958b458.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Michael, 2016-08-23
@MacFiss

Usually such things are done in /components/Socials/...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question