使用 php 设计具有用户定义菜单和输入表单模板的完整动态 cms
我将制作一个 cms,让管理员有机会定义菜单及其内容。对于菜单的内容,我将设计一个模板系统,管理员可以在其中定义内容的输入表单字段及其类型(文本、选择、单选、复选框等)。
我想知道你如何设计这个系统。您是否将模板保存为 xml 格式或其他格式?您是否将这些模板保存在文件或数据库中?你是否制作数据库表来存储这些模板插入的数据?
最后你知道有什么cms使用这个系统来动态生成输入表单吗?
顺便说一句,我也使用 php 和 zend 框架。
提前致谢。
I am going to make a cms which gives the administrator the opportunity to define menus and their contents. for the menus' contents i am going to design a template system in which the admin can define input form fields and their types (text, select, radio, checkbox,...) for the content.
I want to know how do u design this system. Do u save your templates in xml format or other formats? Do u save these templates in file or database? And do u make database tables for storing these templates' inserted data?
And at last do u know any cms which uses this system to generate input forms dynamically?
By the way i am using php and zend framework also.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果你必须问“我该怎么做?”这个问题。那么它很可能超出你的能力范围。看一下 Wordpress 文件的结构。这就是帮助我摆脱困境的原因。
我即将将我自己的 CMS 框架启动上传到 google 代码。一旦它们不再处于维护模式,我就会这样做并发布链接。
基本上文件结构是index.php -> cms-header.php-> (load.php &includes/template-loader.php)->更多文件。
[编辑]这是链接Penguin CMS。它仍然非常处于测试阶段......甚至不值得被称为测试版,但希望您明白这一点。
If you have to ask the question "How do I do it?" then it is most likely over your head. Take a look at the stucture of Wordpress' files. That is what helped me out.
I am about to upload my own start at a CMS framework to google code. I'll do it and post the link as soon as they are not in maintenance mode anymore.
Basically the file structure is index.php -> cms-header.php -> (load.php & includes/template-loader.php) -> lots more files.
[EDIT] Here is the link Penguin CMS. It is still very much in beta... not even worthy of being called beta, but hopefully you get the idea.