CodeIgniter 使用手冊版本 2.2.0


更新 1.3.3 to 1.4.0

注意: 本頁的更新步驟,都是假設你目前使用的是 version 1.3。.3. 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:

注意: 如果之前在這些目錄裡頭,有任何你自己所開發的檔案,請記得要複製進去。

步驟二: 更新 config.php 檔

Open your application/config/config.php file and add these new items:


/*
|--------------------------------------------------------------------------
| Enable/Disable System Hooks
|--------------------------------------------------------------------------
|
| If you would like to use the "hooks" feature you must enable it by
| setting this variable to TRUE (boolean).  See the user guide for details.
|
*/
$config['enable_hooks'] = FALSE;


/*
|--------------------------------------------------------------------------
| Allowed URL Characters
|--------------------------------------------------------------------------
|
| This lets you specify which characters are permitted within your URLs.
| When someone tries to submit a URL with disallowed characters they will
| get a warning message.
|
| As a security measure you are STRONGLY encouraged to restrict URLs to
| as few characters as possible.  By default only these are allowed: a-z 0-9~%.:_-
|
| Leave blank to allow all characters -- but only if you are insane.
|
| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
|
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_-';

步驟三: 更新使用手冊

也請別忘了把 local 的使用手冊換上新的版本。