Basic configuration of the CI framework/teaches you how to learn the CI framework codelgniter

Source: Internet
Author: User
The CI framework is still immature in China now. Unlike thinkphp, there are so many Chinese manuals. in China, many Chinese people have poor English, and there are still few CI tutorials. Everyone has this serious idea.

The CI framework is still immature in China now. Unlike thinkphp, there are so many Chinese manuals. in China, many Chinese people have poor English, and there are still few CI tutorials. This is a serious idea in everyone's mind. I want to use CI. There are a lot of overseas users, and the speed is very fast and agile development! However, this is not the case when it comes to use. there are not many answers to many questions, and many errors cannot be understood. Source code comments in English! Since he is so good, we should promote him. below we will introduce some of the CI's introductory knowledge for everyone to learn:

1. learning CI to download the code first we come here to download the latest version of the http://codeigniter.org.cn/downloads code, some people say the new version is not stable, in fact it doesn't matter.

2. download and decompress the package to the following directory on our site:

Here is the user manual-> user_guide do not understand English can be deleted, go to CI China to see the manual http://codeigniter.org.cn/

Well-known entry File-> index. php

Here is the underlying CI code-> system

The code you developed is stored here-> the CI Directory of the old application version is placed in the system

3. if the directory is clear, we need to proceed to the next step and configure CI:

Configure the base URL: application-> config. php. if this is the test, configure $ config ['base _ url'] = "http: // localhost";

Configure the main boot directory: application-> config-> routes. php. if your home class is index, configure $ route ['default _ controller'] = "index ";

Database configuration: application-> config-> databases. php to configure your database

$ Db ['default'] ['hostname'] = "localhost"; // host

$ Db ['default'] ['username'] = "root"; // User name

$ Db ['default'] ['password'] = "root"; // password

$ Db ['default'] ['database'] = "mydata"; // name of the database for this project

$ Db ['default'] ['char _ set'] = "gbk"; $ db ['default'] ['dbcollat'] = "gbk_general_ci"; // character encoding

After completing these configurations, you can start writing your class. the CI of the old version is somewhat different from that of the new version. Some CI videos in China are based on the old version, and bloggers will guide everyone into the CI framework. please refer to the next article ---

More CI knowledge or go to CI China http://codeigniter.org.cn/forums? Fromuid = 19506

Reprinted please note: php learning blog _ seo learning _ old man's network? Basic configuration of the CI framework/teaches you how to learn the CI framework codelgniter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.