CodeIgniter User Guide Version 2.2.6 |
Table of Contents Page |
CodeIgniter Home › User Guide Home › Upgrading from 1.4.1 to 1.5.0 |
Note: The instructions on this page assume you are running version 1.4.1. If you have not upgraded to that version please do so first.
Before performing an update you should take your site offline by replacing the index.php file with a static one.
Replace these files and directories in your "system" folder with the new versions:
Note: If you have any custom developed files in these folders please make copies of them first.
Open your application/config/database.php file and add these new items:
$db['default']['cache_on'] = FALSE; $db['default']['cachedir'] = '';
Open your application/config/config.php file and ADD these new items:
/* |-------------------------------------------------------------------------- | Class Extension Prefix |-------------------------------------------------------------------------- | | This item allows you to set the filename/classname prefix when extending | native libraries. For more information please see the user guide: | | http://codeigniter.com/user_guide/general/core_classes.html | http://codeigniter.com/user_guide/general/creating_libraries.html | */ $config['subclass_prefix'] = 'MY_'; /* |-------------------------------------------------------------------------- | Rewrite PHP Short Tags |-------------------------------------------------------------------------- | | If your PHP installation does not have short tag support enabled CI | can rewrite the tags on-the-fly, enabling you to utilize that syntax | in your view files. Options are TRUE or FALSE (boolean) | */ $config['rewrite_short_tags'] = FALSE;
In that same file REMOVE this item:
/* |-------------------------------------------------------------------------- | Enable/Disable Error Logging |-------------------------------------------------------------------------- | | If you would like errors or debug messages logged set this variable to | TRUE (boolean). Note: You must set the file permissions on the "logs" folder | such that it is writable. | */ $config['log_errors'] = FALSE;
Error logging is now disabled simply by setting the threshold to zero.
If you are running a stock index.php file simply replace your version with the new one.
If your index.php file has internal modifications, please add your modifications to the new file and use it.
Please also replace your local copy of the user guide with the new version.
Previous Topic: Installation Instructions · Top of Page · User Guide Home · Next Topic: Troubleshooting
CodeIgniter · Copyright © 2006 - 2014 · EllisLab, Inc. · Copyright © 2014 - 2015 · British Columbia Institute of Technology