1.4.1 에서 1.5.0 으로 업그레이드

참고

이 페이지의 지침은 버전 1.4.1을 실행하고 있다고 가정합니다. 해당 버전으로 먼저 업그레이드하지 않은 경우, 먼저 업그레이드하세요.

업데이트를 수행하기 전에 index.php 파일을 정적 파일로 교체하여 사이트를 오프라인 상태로 만들어야 합니다.

Step 1: CodeIgniter 파일 업데이트

“system” 폴더에서 다음 파일과 디렉터리를 새 버전으로 교체합니다:

  • application/config/user_agents.php (1.5 의 새 파일)

  • application/config/smileys.php (1.5 의 새 파일)

  • codeigniter/

  • database/ (1.5 의 새 폴더. “drivers” 폴더를 대체)

  • helpers/

  • language/

  • libraries/

  • scaffolding/

참고

이 폴더에 사용자 정의 파일이 있는 경우, 먼저 복사본을 만들어 두세요.

Step 2: database.php 파일 업데이트

application/config/database.php 파일을 열고 다음 새 항목을 추가하세요:

$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';

Step 3: config.php 파일 업데이트

application/config/config.php 파일을 열고 다음 새 항목을 추가하세요:

/*
|--------------------------------------------------------------------------
| 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:
|
| https://codeigniter.com/userguide3/general/core_classes.html
| https://codeigniter.com/userguide3/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;

같은 파일에서 다음 항목을 제거하세요:

/*
|--------------------------------------------------------------------------
| 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;

에러 로깅은 이제 단순히 임계값을 0으로 설정하여 비활성화됩니다.

Step 4: 메인 index.php 파일 업데이트

기본 index.php 파일을 사용하고 있다면 새 버전으로 교체하세요.

index.php 파일에 내부 수정 사항이 있는 경우, 새 파일에 수정 사항을 추가하여 사용하세요.

Step 5: 사용자 가이드 업데이트

로컬에 보유한 사용자 가이드도 새 버전으로 교체해 주세요.