Login
Discover
Waves
Communities
Write
Login
Signup
Topics
#
php-dev
Explore topics
#php-dev
Global
Trending
Hot
New
Payout
Muted
Promoted
#php-dev
New
#php-dev
Follow to get notified about new posts with this tag
Get #php-dev by email
Follow
brianpark
php
9y
[PHP/Codeigniter] CI에서 $this->output->set_header()가 작동하지 않을 때
※ 이미 알고있었지만 까먹고 어제 헤맷던 사례가 있어 적어두기 Codeigniter에서는 자체적으로 제공하는 output 클래스가 있습니다. 가끔 저같은 사람들이 output으로 header를 지정해놓고 출력물을 출력한 뒤 exit()으로 종료시켜버리는 경우가 있는데요. 이런 경우에는 정상적으로 php 소스 코드가 끝나는 것이 아니라 중간에 '난 탈출할꺼야!
$ 0.000
1
Discover communities
Explore communities
Create your community