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

If I want to get data from web.

Where should I program fetch function in?

Model or Controller?

Or a library Smile

[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