使用 MVC 框架比例如有什么优点?Drupal 搭建大型网站? [英] What are the advantages of using an MVC framework over e.g. Drupal to build a large website?

查看:16
本文介绍了使用 MVC 框架比例如有什么优点?Drupal 搭建大型网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在撰写用于构建我们新网站的 3 种技术选项之间的比较:

I am writing a comparison between 3 technology options for building our new website:

  • WordPress
  • Drupal
  • MVC 框架

老板肯定我们应该使用Wordpress,但网站会很大,有很多版块、子版块、页面和复杂的模板.

The boss is sure we should use Wordpress, but the site will be big, with many sections, subsections, pages, and complicated templates.

我发现比较 WP + Drupal 很容易,但要说明使用 MVC 框架的额外优势(相对于 Drupal)并不那么容易.

I'm finding it easy to compare WP + Drupal, but not so easy to state the additional advantages (over Drupal) of using an MVC framework.

到目前为止我有:

  • 自定义数据存储、内容类型、语义
  • API/REST
  • 逻辑/界面分离
  • 约定、代码结构

(显然,一些好处会因项目类型而异.在这种情况下,它将成为博物馆的大型门户,并有可能为游客提供一些社交内容)

(Obviously some of the benefits will be different depending on the type of project. In this case it will be a large portal for a museum, with potential for some social stuff for visitors)

推荐答案

很难将 CMS(例如 Drupal、WordPress)与 MVC 框架进行比较,因为它们属于不同的类别.

It's difficult to compare a CMS (e.g., Drupal, WordPress) with an MVC framework because they are in different categories.

为了具体回答您关于 MVC 框架相对于 CMS 的优势的问题,MVC 框架的优势很简单,它允许您从头开始设计您需要的确切 Web 应用程序.

To specifically answer your question about the advantage of an MVC framework over a CMS, the advantage of an MVC framework is simply that it allows you to design the exact web app you need from the ground up.

至于您的具体情况:

使用现有的 CMS(例如 WordPress 或 Drupal)将是一个很好的主意,如果它们满足您的需求.它避免了重新发明轮子,节省您的时间,并且 CMS 可以非常用户友好(在不同程度上).如果您打算将内容更新的任务委派给非技术用户,那么谨慎选择对新手友好的 CMS 而不是使用 MVC 框架旋转您自己的 CMS,这可能会导致应用程序需要更多的技术专长才能维护.

Using an existing CMS such as WordPress or Drupal would be an excellent idea if they fit your needs. It avoids reinventing the wheel, saves you time, and CMSs can be quite user-friendly (to varying degrees). If you plan to delegate the task of content updates to a non-technical user, then it might be prudent to choose a novice-friendly CMS rather than spinning your own with an MVC framework, possibly resulting in an app that requires more technical expertise to maintain.

但是,如果您设想网站将需要大量自定义业务逻辑,而这些逻辑在 CMS 的限制范围内难以实现,那么您可能需要使用 MVC 框架.

If, however, you envision that the website will require a lot of custom business logic that would be difficult to implement within the constraints of a CMS, then you might need to use an MVC framework.

这篇关于使用 MVC 框架比例如有什么优点?Drupal 搭建大型网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆