适用于多种配置文件类型网络的正确 php 框架
我目前正在规划我的一个社交网络项目。转变想法后在我的脑海里输入了很长一段时间,我现在开始将想法具体地写在纸上。该网络将针对非常特定的人群(因此没有糟糕的 Facebook 副本)及其行业。
我现在面临的问题是选择一个框架,还是决定坐下来自己编程一切。我知道有很多 php 框架,并且我花了很长时间检查选项。
到目前为止,我已将 zend 和 yii 标记为我的最爱,但有一个问题我无法获取相关信息。
该网络将具有 3 种(将来甚至 4 种)完全不同的配置文件类型。第一种是机构(例如学校),第二种是与其直接附属的人员(例如老师),第三种是随机的人(学生、家长等)*。
*当然,这会是不同的事情,但只是为了让你明白。
->不同的配置文件类型之间会有不同的交互规则。他们将有完全不同的字段需要填写,所以我将为他们创建 3 个不同的数据库。
我的问题:只有一个登录,一个页面。您认为哪个框架可以给我一些处理 3 种不同用户类型及其交互规则的可能性?我应该完全依赖框架还是应该从头开始?
感谢您提前提供信息, 塞巴斯蒂安 =)
i am currently in the process of planning a social network project of mine. after turning ideas & inputs in my mind for a very long time i am now starting to put thoughts on paper concretely. the network will be for a very specific group of people (so no bad facebook copy) and their industry.
the problem i am facing now is the choice of a framework or the decision to sit down and program everything ourselves. i know that there is a lot of php frameworks out there and i have spent quite a while checking the options.
i have marked zend and yii as my favorites so far from what i have seen and heard, but there is one issue i could not get information about.
the network will have 3 (in the future even 4) completely different profile types. the first type will be an institution (such as a school), the second will be someone directly affiliated by it (such as a teacher) and the third will be random people (students, parents, etc..)*.
*it will be different things of course but just so you get the idea.
-> there will be different rules of interaction between the different profile types. they will have completely different fiels to fill out, so i will create 3 different databases for them.
my question: there will only be one login, one page. which framework do you think could give me some possibilities to handle 3 different usertypes and their interaction rules? should i rely on a framework at all or should i start from scratch?
thank you for the input in advance,
sebastian =)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
嗯,我还会推荐 Yii,因为它是一种强大的面向对象语言,使您能够让重型应用程序表现出轻量级应用程序。
非常强大的ORM就是它的美妙之处。我建议你先计划一下然后开始。先简单了解一下它的结构,然后开始
你可以通过 模块。我最近使用这个制作了Yii 到目前为止有 3 个角色管理员、教师、学生,其中两人有个人资料。
快乐的编程:)
Well I will also suggest Yii because it is strongly object oriented language and gives you ability to have heavy app behaving light weight application.
Very strong ORM is its beauty. I suggest you plan it first then take a start.first have a brief knowledge of its structure and then start
you can handle multiple profiles by Modules.I recently made This using Yii it has 3 roles so far Admin,Teacher,Student and two of them has profiles.
Happy programming :)
如前所述,这不是框架问题。
一个数据库中可能有 3 个表:
- 一份供机构使用
- 一个用于配置文件
- 一个用于这些之间的关系,带有关系类型的状态字段。
选择框架时:考虑它的简单性以实现快速开发。
As mentioned before this is not a framework issue.
It might be 3 tables in one database :
- one for institutions
- one for profiles
- one for relations between those, with a status field for the relationtype.
When choosing a framework : consider it's simplicity for rapid development.
祝你好运
Good luck