我计划开发一个 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:
这确实意味着您必须维护两个页面主题(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 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!