Model-View-Controller

最天晚上很晚才睡,这些天都很忙,光弄系统就弄了好多时间,还要见习,做实验,做作业,为四级而奋斗,还要吃饭,睡觉…….
学校每天11点准时断电,但是我笔记本还能支持大概2个小时:)。在断电前半个小时,突然回想起了mvc,然后自然就想起了tp ,qe 这些php
framework ,一口气把 CI ,TP ,QE ,KIWI全下载下来了,说实话,除了TP,其它三者我只是听过名字或在坛子里路过时看到过N遍而已,没有用过。我想应该抽时间把这四个都看一下,至少要弄个hello world 玩玩,有时间还得看一下它们的源代码。qe 的源码注释那是相当的详细,呵呵。
tp 、CI 的文档那是相当的详细,qe的也不错,但是KIWI的话,在网上找了N久也没有找到它的文档,连一个hello world都没有找到。但是这四者里面就属它的体积最小啦-_-
在CI文档中有一个对mvc的解释,虽然是英文的,但是我想一般人都应该可以看懂,也没有必要翻译成中文,下面我就把它摘录下来了:

MVC is a software approach that separates application logic from presentation. In practice, it permits your web pages to contain minimal scripting since the presentation is separate from the PHP scripting.

  1. * The Model represents your data structures. Typically your model classes will contain functions that help you retrieve, insert, and update information in your database.
  2. * The View is the information that is being presented to a user. A View will normally be a web page, but in CodeIgniter, a view can also be a page fragment like a header or footer. It can also be an RSS page, or any other type of “page”.
  3. * The Controller serves as an intermediary between the Model, the View, and any other resources needed to process the HTTP request and generate a web page.

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:

相关日志

回复 (4)

  1. Louis Han  / 回复

    我记得Eclipse也有一个PHP版本

    • 荒野无灯  / 回复

      @Louis Han, 不是php版本,是一个扩展,我目前一直在用eclipse PDT ,你可以去官网下载。

      • Louis Han  / 回复

        @荒野无灯, 我看到有个for php 的all-in-one package呢
        我不懂PHP,一直用的是Java版本

        • 荒野无灯  / 回复

          @Louis Han, 对,那个all in on one 是最省事的,如 All-In-One Windows 32-bit ,All-In-One Linux x86/GTK 2 32-bit

发表评论 修改评论取消编辑

允许使用的标签 - 您可以在评论中使用如下的 HTML 标签以及属性。

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

引用通告 (0)

› 尚无引用通告。

开灯