| 제목 | redirect 호출이 않되네요... | ||
|---|---|---|---|
| 글쓴이 | 리게인 | 작성시각 | 2014/05/02 16:31:36 | 
| 
                         | 
                |||
| 
                        topic.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Topic extends CI_Controller { function index(){ $this->load->helper('url'); redirect('/topic5'); } } ?> topic5.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Topic5 extends CI_Controller { function index(){ echo"변경됨"; } } ?> ----------------------------------------------------------- A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /data/enic/public_html/code/application/controllers/topic.php:1) Filename: helpers/url_helper.php Line Number: 542  | 
                |||
| 다음글 | controller에서 함수호출 질문 드립니다. (2) | ||
| 이전글 | 모바일에서 웹 사이트에 HTTP_REFERER 같은 기... (1) | ||
| 
                             
                                한대승(불의회상)
                                /
                                2014/05/02 16:35:22 /
                                추천
                                0
                             
                            
                                echo문을 redirect문 밑에 위치시키세요.
                             
                         | 
                    
| 
                             
                                리게인
                                /
                                2014/05/02 16:42:44 /
                                추천
                                0
                             
                            
                                에코문을 지워도  
                        A PHP Error was encountered Severity: Warning Message: Cannot modify header information - headers already sent by (output started at /data/enic/public_html/ci/application/controllers/topic.php:1) Filename: helpers/url_helper.php Line Number: 542  | 
                    
| 
                             
                                한대승(불의회상)
                                /
                                2014/05/02 17:29:16 /
                                추천
                                0
                             
                            
                                redirect 함수 호출전에 뭔가가 출력되서 나오는 에러 입니다.
                             
                         | 
                    
| 
                             
                                리게인
                                /
                                2014/05/02 18:21:36 /
                                추천
                                0
                             
                            
                                해결했습니다. ㅠㅠ 
                        유니코드 서명(BOM)을 추가하여 UTF-8로 저장해던 문제였네요... BOM 빼니깐 잘되네요... 답변 감사했습니다.  |