Web应用程序:框架还是不框架? [英] Web-apps : to framework or not to framework?

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

问题描述

我知道PHP,并且只是从MySql开始(但计划使用ODBC).我不需要任何书籍来解释这一点.

I know PHP and am just beginning with MySql (but plan to use ODBC). I don't need any books explaining that.

我可能有资格开发一个简单的网站,但目标是使用相当雄心勃勃的应用程序.我想几乎所有的Web应用程序都具有一些通用性,例如安全性,可伸缩性等(例如,我完全不知道如何在服务器服务器上分发数据库或应用程序.)

I am probably qualified to develop a simple web site, but aim at taking on quite ambitious apps. I imagine that almost all web apps have some commonality like security, scalability, etc (I have absolutely no idea how to distribute a data base or an app over server servers, for instance).

由于我无法预见我可能会开发的应用程序的确切性质(将涉及PHP和ODBC),因此有必要加入框架,还是应该重新发明一下框架?并对其进行个性化以使其成为我自己的框架.

Since I can't foresee the exact nature of the applications which I might develop (other than that PHP & ODBC will be involved), is there any point in getting married to a framework, or should I just reinvent the wheel and personalize it to make it my own framework.

如果现有框架,那么哪个框架?我能提供的唯一帮助是,我不太可能做网站,门户网站,购物网站等,而可能更倾向于资产跟踪和数据挖掘.

If an existing framework, then which one? The only help I can give is that I am not likely to do websites, portals, shoppings sites, etc, probably leaning more to asset tracking and data mining.

推荐答案

使用框架可以节省大量时间,并可以帮助您合理地组织应用程序.

Using a framework saves you a ton of time and helps you to organise your app mroe logically.

如果应用程序很小,则理想的框架是CodeIgniter或Kohana.

If the app is small then frameworks like CodeIgniter or Kohana are ideal.

如果您要构建更大的应用程序,则需要扩展Symfony或possiby Zend.

If you are building a bigger app that needs to scale the Symfony or possiby Zend are the ones to look at.

如果您要在Symfony中启动您的应用程序,则会立即得到:

If you were to start your app in Symfony you would instanly get:

  • 使用路线重写网址
  • 一个表单框架,用于处理与您的Web表单有关的所有事情
  • 国际化和本地化
  • 发出消息
  • 缓存
  • 管理区域生成器,可帮助您快速添加数据
  • 单元测试框架

另外,整个框架都是可扩展和可定制的,以满足您的需求.

Plus the whole framework is extendable and custmisable to suit your needs.

从没有框架开始,您必须自己编写所有这些内容.或集成几个不同的开源模块.

Starting without a framework you'd have to write all of this yourself. Or integrate several disparate open source modules.

希望这会有所帮助.

这篇关于Web应用程序:框架还是不框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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