問題描述
我計劃開發一個 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 部分
- phpBB 部分
這確實意味著您必須維護兩個頁面主題(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模板網!