views:

60

answers:

1

I am developing an iphone app that uses a php web service for all functionalities. I am planning on creating model objects to communication between my UI and web service.

Is it better to create model classes on php to communicate between my iphone models and database? or is it ok to communicate directly from database to my model classes for iphone?

Which one of the following is the correct way of handling this communication?

  • iphone-ui- => iphone-model-classes => web-service ==> database
  • iphone-ui => iphone-model-classes => php-model-classes => web-service ==> database
A: 
tc.
"Just use the relevant database library" can you please provide more details on this? Is it really possible to connect directly to a database(outside of the device)!?!?!?!
aryaxt