使用WordPress开发Web应用程序 [英] To use WordPress for developing a web application

查看:152
本文介绍了使用WordPress开发Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正计划开发一个Web应用程序,该应用程序将具有许多静态页面(关于,帮助,联系方式等)以及该应用程序的其他动态页面.

I'm planning to develop a web application which will have many static pages (about, help, contact, etc.) and other dynamic pages for the application.

大多数时候,我使用CakePHP开发我的任何应用程序,但是对于这个项目,我一直在考虑使用WordPress作为我的应用程序框架.原因是因为在WordPress中创建静态页面很容易(易于编写静态页面内容),并且在WordPress中已经存在用户注册(我不必构建它).

Most of the time I use CakePHP to develop any of my applications, but for this project I have being thinking about using WordPress as a framework for my applications. The reason is because in WordPress it will be easy to create the static pages (easy to write the static pages contents) and because the user registration in WordPress already exists (I don't have to build it).

但是,另一方面,CakePHP对我来说很容易,我将专注于构建应用程序,而不是学习新的框架.

But on other hand, CakePHP is easy for me, and I will be focusing in building my application, not learning a new framework.

让我知道您的想法.我应该使用WordPress作为应用程序的核心还是使用CakePHP?

Let me know what you think. Should I use WordPress as the core of my application or use CakePHP?

PS:我的应用程序主要是一个使用Sphinx的搜索引擎,用于在数据库中查找大数据并为用户和其他一些简单的PHP(动态)页面显示结果.

PS: my application will be mainly a search engine using Sphinx to look up large data in a database and display the result for the users and some other easy PHP (dynamic) pages.

推荐答案

要考虑的一个选项是设置WordPress来为您的静态页面提供服务(以避免花费大量时间为此内容重新实现CMS),并使用CakePHP开发动态应用程序这就是您正在构建的核心.

One option to consider is setting up WordPress to serve your static pages (to avoid spending time reimplementing a CMS for this content) and using CakePHP to develop the dynamic application that is the core of what you're building.

然后,您可以将它们托管在同一域下,并且如果为WordPress和CakePHP设置相同的页面结构/CSS,则对用户来说应该是无缝的.

You can then host them under the same domain, and if you set up the same page structure / CSS for both WordPress and CakePHP then it should be seamless to users.

我有一个类似的示例,该站点运行WordPress进行内容管理,而 phpBB 一个论坛,看起来都一样:

A similar example I have is a site running WordPress for content management, and phpBB for a forum, both styled to look the same:

  • WordPress section
  • phpBB section

这确实意味着您必须维护两个页面主题(CSS和HTML)并保持彼此一致,但这确实发挥了WordPress在管理静态内容(关于页面)和时间方面的优势.基础的内容(新闻文章),而所需的时间和精力却很少,这使您有更多时间专注于发挥CakePHP在动态应用程序方面的优势,而这正是您正在构建的核心.

This does mean you have to maintain two page themes (CSS & HTML) and keep them in line with each other, but it does give the advantage of playing to WordPress's strengths of managing static content (about pages) and also time-based content (news articles) with a low time / effort investment, allowing you more time to concentrate on playing to CakePHP's strengths for your dynamic application that is the core of what you're building.

如果您主要使用WordPress,而无需进行大量自定义/开发,则应该能够以较低的学习曲线使其快速运行,从而使您有时间专注于核心应用程序.

If you mostly use WordPress as it comes without doing much customisation / development, you should be able to get it running pretty quickly with a low learning curve, allowing you time to concentrate on your core application.

这篇关于使用WordPress开发Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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