1.4.0 에서 1.4.1 로 업그레이드¶
참고
이 페이지의 지침은 버전 1.4.0을 실행하고 있다고 가정합니다. 해당 버전으로 먼저 업그레이드하지 않은 경우, 먼저 업그레이드하세요.
업데이트를 수행하기 전에 index.php 파일을 정적 파일로 교체하여 사이트를 오프라인 상태로 만들어야 합니다.
Step 1: CodeIgniter 파일 업데이트¶
“system” 폴더에서 다음 디렉터리를 새 버전으로 교체합니다:
참고
이 폴더에 사용자 정의 파일이 있는 경우, 먼저 복사본을 만들어 두세요.
codeigniter
drivers
helpers
libraries
Step 2: config.php 파일 업데이트¶
application/config/config.php 파일을 열고 다음 새 항목을 추가하세요:
/*
|--------------------------------------------------------------------------
| 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;
Step 3: 자동 로드 항목 이름 변경¶
application/config/autoload.php 파일을 여세요.
다음 배열 항목을 찾습니다:
$autoload['core'] = array();
다음과 같이 이름을 변경하세요:
$autoload['libraries'] = array();
일부 사용자가 자신의 라이브러리도 자동 로드할 수 있다는 것을 몰랐기 때문에 명확성을 높이기 위해 이 변경이 이루어졌습니다.
Step 4: 사용자 가이드 업데이트¶
로컬에 보유한 사용자 가이드도 새 버전으로 교체해 주세요.