A CMS With Multiple Storage Backends
I was wondering if there was a way to create a CMS w开发者_如何学Gohich could support many storage backends (MySQL, SQLite, Flat Files, etc) all at the same time in PHP.
Well, yes. You just need to abstract the various APIs for the various backends to create a consistent interface that your application logic can address.
The standard solution to this is PDO. Forget being able to use flat files though, it won't support that.
精彩评论