Precautions for upgrading the project from Codeigniter2.2 to Codeigniter3.0: codeigniter2.2. Precautions for upgrading the project from Codeigniter2.2 to Codeigniter3.0: codeigniter2.21. replace all the files and folders in the system directory, and replace the index. precautions for upgrading the php2.control project from Codeigniter 2.2 to Codeigniter 3.0, codeigniter2.2
1. replace all the files and folders in the system directory and index. php
2. replace the first letter of the files in controllers and models with uppercase letters: application. php-> Application. php, m_application.php-> M_application.php
3. replace config/mimes. php
4. remove $ auto_load ['core'] from config/autoload. php.
5. the use of the session Library has greatly changed: The project mainly modifies the unset_user_data function.
// Old$this->session->unset_userdata(array('item' => '', 'item2' => ''));// New$this->session->unset_userdata(array('item', 'item2'));
6. update the config/database. php file.
$active_group = 'default';// $active_record = TRUE;$query_builder = TRUE;//$db['default']['dbdriver'] = 'mysql';$db['default']['dbdriver'] = 'mysqli';
7. copy the errors folder under CI3.0 views to the views folder of the project.
8. update the config/routes. php file. in CI3.0 (: any), '/' is not included '/'
(.+) // matches ANYTHING(:any) // matches any character, except for '/'
For more information, see: http://codeigniter.org.cn/user_guide/installation/upgrade_300.html
Precautions for upgrading from 2.2 to Codeigniter 3.0: codeigniter2.2 1. replace all the files and folders in the system directory and index. php 2. control...