PHP框架或者不是(Cake PHP) [英] PHP Framework or not (Cake PHP)

查看:120
本文介绍了PHP框架或者不是(Cake PHP)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在大学,我的最后一年项目是一个基于MVC的c#web应用程序。

At university, my final year project was an MVC based c# web application.

我的PHP不是很强,我正在寻找提高我的PHP编程技能并且正在寻找使用PHP mysql构建web应用程序。

My PHP is not strong, and I am looking to improving my programming skills in PHP and am looking to build a web application using PHP mysql.

现在为什么我提到ASP.NET MVC?好吧,因为我非常喜欢开发环境,编程的OOP性质和程序的正确的能力。我也喜欢MVC的编程方法。

Now why did I mention ASP.NET MVC??? Well because I quite liked the development environment, OOP nature of the programming and ability to program 'properly'. I also liked the MVC method of programming.

现在我的问题是..对于一个相对复杂的Web应用程序,我应该使用一个框架如Cake PHP?

Now my question is.. For a relatively complex web application, Should I use a framework such as Cake PHP?

我的特定网络应用程序将执行以下操作:报价引擎,XML,RSS源,用户帐户,购物篮,以后的商店报价,审查以前的交易,在线商店管理等...

My specific web application will be performing the following actions: Quotation engine, XML, RSS Feeds, User Accounts, Shopping Baskets, Store quote for later, review previous transactions, online store management etc...

我想要构建的网站每天可以接收多达4000次匹配,并且将被整合到一个wordpress插件中。

The site I am looking to build could receive up to 4000 hits per day and will be integrated within a wordpress plugin.

使用框架相对于硬编码有什么优点?是不是学习一个框架,像学习一种新的编程语言?

What are the advantages of using a framework as opposed to just hardcoding? Isn't learning a framework like learning a new programming language?

推荐答案

评估为精通几个(包括蛋糕),我建议你看看 Yii框架。它是轻量级,高效,写好,支持大量的功能,有大和友好的社区,并且一定是更好的CakePHP imho。

As a person with experience in about dozen php frameworks and self assessed as proficient in a few (Cake included), I would suggest you look into Yii Framework. It is lightweight, efficient, well written, supports huge amount of features, has big and friendly community and is by all means better then CakePHP imho.

至于4000每天的命中 - 这基本上没有。如果你写的是优化的应用程序(照顾慢查询,相应地优化数据库,最终将大量流量内容移动到CDN),在一个体面的服务器上,网络应用程序可能需要很多次。

As far as the 4000 hits per day - that's basically nothing. If you write well optimized applications (take care of slow queries, optimize the db accordingly, move heavy traffic content to CDN eventually), on a decent server, web app can take many times that amount.

这篇关于PHP框架或者不是(Cake PHP)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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