CI Framework basic configuration/teach you to learn CI framework Codelgniter Abstract: CI framework now China can be said or immature, not like thinkphp as there are so many Chinese manuals, in the country, many people English is very bad, CI is still not many tutorials. There is this serious idea in everyone's heart ...
CI Framework now China can be said or immature, not as thinkphp as there are so many Chinese manuals, in the country, many people English is very bad, Xiguajunci now the tutorial is not much. Everyone in the hearts of this serious idea, watermelon June I want to use CI, a lot of people abroad, but also very fast, and agile development! But the use of it is not so much, a lot of questions to search for a few answers, many errors can not understand. Source code comments in English! Since he is so good, we should promote him, below to introduce some of CI's introductory knowledge for everyone to learn:
1. Learn ci to download the code first we come here http://codeigniter.org.cn/downloads download the latest version of the code, some people say the new version is not stable, in fact, it doesn't matter.
2. Download the following directory to unzip and place it on our site:
Here is the user manual –>user_guide do not know English can be deleted, to CI China to read the handbook http://codeigniter.org.cn/
Well-known entry file->index.php
Here is the underlying code for CI->system
Here is the code that you have developed for your development->application the old version of CI This directory is placed in the system
3. The catalogue is clear. We will proceed to the next step, configuring CI:
Make the base URL configuration:application–> config->config.php if it is a test such configuration $config[' base_url '] = "http://localhost";
Master Boot Directory configuration: application–>config–>routes.php If your home class is index such configuration $route[' default_controller ' = "index";
Database configuration: application->config->databases.php Configure your database in this way
$db [' Default '] [' hostname '] = "localhost";//Host
$db [' Default '] [' username '] = "root";//user name
$db [' Default '] [' password '] = "root"; Password
$db [' Default '] [' database '] = ' mydata ';//For the project's name
$db [' Default '] [' char_set '] = "GBK"; $db [' Default '] [' dbcollat '] = "gbk_general_ci"; Character encoding
You can start writing your class with these configurations, and the old version of CI is a little different from the new version now. Some CI Chinese videos are based on the old version of the talk, Bo will slowly guide you into the CI framework, please see the next article ———
More CI knowledge or go to CI China
Reprint Please specify: Watermelon June Blog
CI Framework basic configuration/teach you to learn CI framework Codelgniter