适用于多种配置文件类型网络的正确 php 框架

发布于 2024-12-29 23:27:40 字数 527 浏览 2 评论 0原文

我目前正在规划我的一个社交网络项目。转变想法后在我的脑海里输入了很长一段时间,我现在开始将想法具体地写在纸上。该网络将针对非常特定的人群(因此没有糟糕的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

可可 2025-01-05 23:27:40

嗯,我还会推荐 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 :)

痕至 2025-01-05 23:27:40

如前所述,这不是框架问题。
一个数据库中可能有 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.

不羁少年 2025-01-05 23:27:40
  1. 我真的不认为你应该使用 3 个不同的数据库来处理像用户类型这样徒劳的事情。相反,在单个数据库中对用户类型进行建模。
  2. 我个人使用 Yii 作为 Php 框架,它当然能够处理多种用户类型。但我想知道你是否意识到你使用框架的目的。我认为你们宁愿停止寻找正确的框架,而是寻找正确的内容管理器

祝你好运

  1. I really Don't think you should use 3 different databases for something as futile as a User Type. Rather model user types in the single database.
  2. I personally use Yii, as a Php framework, which offcourse is able to handle multiple usertypes. But I wonder if you realize what you use a framework for. I think you guys rather stop searching for the right framework, but rather lookup the right content-manager

Good luck

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文