You may have some projects build using Code Igniter version 1.7.1 / 1.7.2 or earlier. And now Code Igniter 2+ version released. So eventually a question should arise in your mind “How to convert old projects into new version easily”
Here are 8 steps by which you can easily make compatible your old projects into new version of CI.
1. Replace new system folder and index.php file.
2. All Controllers now extend CI_Controller instead of Controller
3. in all controllers constructor
function __construct()
replace parent::Controller(); by parent::__construct();
4. All Models now extend CI_Model not extend Model
5. All models constructor function __construct()
function Model() replace by function __construct()
6. All model files replace orwhere(‘..’) by or_where (‘..’), orderby(‘..’) by order_by(‘..’), groupby(‘..’) by group_by(‘..’) [ it's a change of CI 2+]
7. Open application/config/config.php,
Set encryption key like this:8. Create a folder named logs at application/logs and folder permission 0777
$config['encryption_key'] = 'aminulsumonvi';
Enjoy your codeigniter version 1.7+ is now fully comply with version 2.0+.




