dsvbtgo639708 2013-09-11 07:00 采纳率: 0%
浏览 72
已采纳

CodeIgniter是基于组件的PHP框架吗?

Yii framework specifies that it was a component-based PHP framework and i need to know whether CodeIgniter was a component-based PHP framework or not?

In my search i found that CodeIgniter was a OO PHP framework. Is both the same, the Object oriented and Component based? and also whether CI a component-based PHP framework?

  • 写回答

2条回答 默认 最新

  • dongsheng1698 2013-09-11 07:33
    关注

    CodeIgniter is not a component based framework. A component based framework is also called a pull based framework, CodeIgniter is a push based framework.

    Think of component based as one way to organize car parts in a garage.

    In a component based garage you would have all your tires in one area, and all the suspension parts in another area, and the transmission parts elsewhere etc.

    But then a different garage that was an object oriented type garage structure would have different sections in your garage for each type of car. So all your chrysler parts would be in one section; you could get tires there and the suspension parts and transmission parts specific to that model all in one location. Then the different section in that same oo garage would have all your mercedes parts; the tires, suspension, and tranny. This garage is based on the fact that all the cars have the same parts, and kept organized according to each specific object (a.k.a manufacturer).

    http://en.wikipedia.org/wiki/Web_application_framework

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥35 平滑拟合曲线该如何生成
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了
  • ¥15 链式存储应该如何解决
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站