• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.