开发者

A CMS With Multiple Storage Backends

开发者 https://www.devze.com 2023-02-14 20:33 出处:网络
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 abs

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消