更新 1.4.0 到 1.4.1
注意: The instructions on this page assume you are running version 1.4.0. If you have not upgraded to that version please do so first.
在準備更新之前,你應該把 index.php 換成靜態檔,這樣即可暫時休站。
步驟一: 更新 CodeIgniter 檔案
Replace the following directories in your "system" folder with the new versions:
注意: 如果之前在這些目錄裡頭,有任何你自己所開發的檔案,請記得要複製進去。
- codeigniter
- drivers
- helpers
- libraries
步驟二: 更新 config.php 檔
Open your application/config/config.php file and add this new item:
/* |-------------------------------------------------------------------------- | Output Compression |-------------------------------------------------------------------------- | | Enables Gzip output compression for faster page loads. When enabled, | the output class will test whether your server supports Gzip. | Even if it does,however,not all browsers support compression | so enable only if you are reasonably sure your visitors can handle it. | | VERY IMPORTANT: If you are getting a blank page when compression is enabled it | means you are prematurely outputting something to your browser. It could | even be a line of whitespace at the end of one of your scripts. For | compression to work,nothing can be sent before the output buffer is called | by the output class. Do not "echo" any values with compression enabled. | */ $config['compress_output'] = FALSE;
步驟三: Rename an Autoload Item
Open the following file: application/config/autoload.php
Find this array item:
$autoload['core'] = array();
And rename it to this:
$autoload['libraries'] = array();
This change was made to improve clarity since some users were not sure that their own libraries could be auto-loaded.
步驟四: 更新使用手冊
也請別忘了把 local 的使用手冊換上新的版本。