코드이그나이터 기반 PHP 오픈소스 게시판 : 씨아이보드

URL routes 관련 질문이요.

  • BPP
  • 2
  • 4,299
  • 글주소
  • 05-17

게시글 보기 형식을

http://www.ciboard.co.kr/boardkey/123   이런식으로 바꾸고 싶어서

 

routes.php line71) 에 아래 소스 추가

else if (strtoupper(config_item('uri_segment_post_type')) === 'D') {

$route['([a-zA-Z0-9_-]+)' . '/([0-9]+)'] = "board_post/post/$2";

}

 

CB_url_helper.php line 82) 에 아래소스 추가

elseif (strtoupper(config_item('uri_segment_post_type')) === 'D') {

$post_url = site_url($key . '/' . $post_id);

}​

 

Board_post.php  line 180) 에 아래소스 추가

elseif (strtoupper(config_item('uri_segment_post_type')) === 'D') {

if ($this->uri->segment('1') !== element('brd_key', $board)) {

show_404();

}

}

 

3군데 추가 하여서 config.php 에 $config['uri_segment_post_type'] 을 'D'로 변경 하였는데

게시글은 뷰페이지는 잘되는데 왜 수정페이지가 404가 될까요?