Step 1 – Download latest version of CodeIgnier.
Step 2 – Move the application folder of your code base to outside system folder so that both system and application folder are in same label.
Step 3 – Copy the system folder from new CodeIgnier version and replace the old system folder by new one.
Step 4 – Replace the files inside application/config with the new ones. However you need to do it carefully as these files contains configuration settings. Some important points you need to check are
- Database setting inside database.php
- Any extra constants defined inside constants.php
- Any config setting defined inside config.php including base_url.
- Any routs defined in routs.php.etc.
Step 5 – Copy the index.php file from root of new CodeIgnier and paste in your project directory at root and add necessary setting if you had any in your old file.
Step 6 – All core classes are now prefixed with CI_. Update Models and Controllers to extend CI_Model and CI_Controller, respectively.
Step 7 – All native CodeIgniter classes now use the PHP 5 __construct() convention. Please update extended libraries to call parent::__construct().
Step 8 – In latest version of CodeIgniter plugins and helpers are same. There is no concept of plugin.. So you will need to rename your plugin files from filename_pi.php to filename_helper.php if you have any and move them to your helpers folder, and change all instances of $this->load->plugin(‘name’); to $this->load->helper(‘name’);