First of all I am sorry that I am not able to provide you much details and my question might sound to general.
I am working on a small project but the requirement of the project is bit wired. I have to make the data source switchable. So if I am using Database as a data source now in future it might be able to use a web service or files.
I don't have any clue on how to implement my models so that I can switch the data source without making major changes to the application.
Is there a design pattern or any design practices which I can use to deal with this situation?
I am planning on using Zend Framework.
Thanks for your help in advance.