Welcome Guest, Not a member yet? Register   Sign In
web fetch funtion in MVC?
#1

[eluser]cleansugar[/eluser]
If I want to get data from web.

Where should I program fetch function in?

Model or Controller?
#2

[eluser]Wuushu[/eluser]
Or a library Smile
#3

[eluser]Colin Williams[/eluser]
Use a model to encapsulate the management of the data from the web service. Use a library within the model to connect to the web service. It's just like how models use the database library.




Theme © iAndrew 2016 - Forum software by © MyBB