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

What CI doesn't do

There are some things that CI doesn't do. CI was intended to be a small and lightweight framework. The zipped download for version 1.7.2 is only 2.1 MB and is downloaded in seconds, whereas the Zend framework is 10 MB. It won't answer all the problems you will have. But it does:

  • Make it easy and quick to program in PHP
  • Structure your site and help you through the architectural decisions

As a result of being lightweight, it does not have as many features as some of its rivals. Other frameworks such as Rails, CakePHP, or Symfony have scaffolding and generators. These tools automatically write certain basic scripts for you.

Once you have set up a database, Rails creates out-of-the-box web pages to do basic Create, Read, Update, and Delete (CRUD) operations on the database tables. In addition, Rails allows you to write generators—pieces of code that automatically write other basic scripts. The Rails community has created quite a lot of these, so you can automatically generate scripts that do all sorts of clever things.

CI concentrates on making basic things easy. Some of the things it handles are:

  • Session management and cookies (see Chapter 6)
  • Database access and queries (see Chapter 4)
  • Building HTML stuff, like pages and forms, and validating form entries (see Chapter 5)
  • Communicating on the Internet, using FTP (Chapter 9)

Sounds familiar? All of these are basic processes, which you will have to go through if you're building a dynamic website. CI makes these processes easier, and makes your code more likely to work. Join this outstanding community; it will help you in case you need it (at the CodeIgniter forums). You can even share code at the Wiki (http://codeigniter.com/wiki/), and you will find why CI is so popular.

主站蜘蛛池模板: 苍山县| 彭州市| 左云县| 合水县| 炉霍县| 合川市| 罗甸县| 綦江县| 抚顺县| 容城县| 龙州县| 会昌县| 阿克陶县| 汾阳市| 白沙| 崇州市| 平谷区| 高要市| 葫芦岛市| 务川| 广德县| 塔城市| 德化县| 榆林市| 广昌县| 东乌| 连南| 阳谷县| 阆中市| 太仓市| 常德市| 巴中市| 金平| 惠安县| 赤壁市| 巴青县| 涿鹿县| 平潭县| 青龙| 平凉市| 湟源县|