![]() |
Model, data from webservice? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10) +--- Thread: Model, data from webservice? (/showthread.php?tid=70398) |
Model, data from webservice? - deejay - 04-04-2018 Hi! I´m about to start a project with CI. CI will not directly communicating with a database. The database data will be handled by a REST webservice i written. But where would should you put the "communication with the webservice". I know it probobly doesn´t mather if i use a Controller or a Model for that. But using the MVC approach it would be a good idea to have that communication in the Model right? The Controller will have other issues to think about. Am i correct in that assumption? Or should the Controller handle communication with the webservice? |