配置设计数据库和管理器
我目前正在开发一个系统,我希望它是高度基于配置的,基本上从那个管理面板我想要一个围绕数据库结构设计的配置系统。
我正在寻找一种设计数据库的好方法,以便我可以拥有不同类型的可配置值,例如多可选值(下拉)、布尔值 - 开/关值(单选框)、基于文本的值等。
是否有您可以建议高效且干净的方法。
到目前为止我还没有开始任何事情,因为我不想走错方向,这就是为什么我征求你的建议。
- 该系统是使用 PHP 和 PDO(基于 MySQL)构建的,
- 具有基于 MVC 的架构
。
Im currently working on a system that I want to be highly configuration based, basically from that administration panel I want a configuration system designed around the database structure.
I am looking for a good way to design the database so that I can have different types of configurable values such as multi selectable values (drop down), boolean - on/off values (radio boxes), text based values etc.
Are there any ways you can suggest that's efficient and clean.
I haven't started anything so far because I do not want to go in the wrong direction, this is why i ask for your advice.
- The system is built using PHP and PDO (based around MySQL)
- Has an MVC based architecture
Regards.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经在专用框架中完成了此操作,这就是我的做法:
这就是 Microsoft Project 的工作原理。这很简单而且有效。
I have done this already in a dedicated framework and here is how i did it:
This is how Microsoft Project works. It's simple and it works.