Some precautions for upgrading the project from Codeigniter2.2 to Codeigniter3.0, codeigniter2.2 _ PHP Tutorial

Source: Internet
Author: User
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...

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.