官术网_书友最值得收藏!

  • CodeIgniter 1.7
  • David Upton Jose Argudo Blanco
  • 219字
  • 2021-04-01 13:45:29

Chapter 3. Navigating Your Site

Now that we've installed CI, we need to understand how it works.

Readers familiar with design patterns would have recognized by now that CI implements the Model-View-Controller (MVC) pattern. This is a method of organizing the files that make up a website or if you like, of splitting the site into sensible parts rather than having one huge lump of code.

In this chapter, we'll briefly look at the theory behind MVC, and then at the way CI organizes itself internally. In particular, what goes in those different folders and how do they communicate?

In this chapter we will look at:

  • How MVC helps to organize a dynamic website
  • The process by which CI analyzes an incoming Internet request and decides which part of your code will handle it
  • What the code does
  • CI syntax rules
  • The different type of files or classes you can find—or write for yourself—on a CodeIgniter site
  • How to pass parameters to controllers using the URL
  • How to write better views and pass dynamic data to them
  • How a reply is returned to the surfer
  • How the files or classes pass information and control to each other
  • How useful code is kept inside helper and library files
  • Some practical hints on site design
主站蜘蛛池模板: 包头市| 东兴市| 调兵山市| 斗六市| 布尔津县| 安多县| 日土县| 腾冲县| 潜江市| 富裕县| 柏乡县| 武山县| 聂荣县| 齐齐哈尔市| 阿克苏市| 府谷县| 忻城县| 邢台市| 安庆市| 庆城县| 丘北县| 额济纳旗| 宁津县| 阿克苏市| 阿拉善右旗| 保山市| 英超| 广宗县| 普兰店市| 桦川县| 阳朔县| 策勒县| 历史| 柯坪县| 蒙城县| 左权县| 积石山| 湖北省| 衡阳市| 鹿邑县| 安仁县|