만들면서 배우는 CodeIgniter Q&A

제목 todo중 write컨트로부분에...리다이렉트가...ㅜㅜ
글쓴이 바우바버 작성시각 2014/01/23 16:29:51
댓글 : 2 추천 : 0 스크랩 : 0 조회수 : 11462   RSS

 다른 부분은 잘돼는데....
인서트 모듈도 잘갔다 옵니다 데이타가 잘 박혀요
 ci 버젼은 2.1.4 입니다

function write() {
      if($_POST){
         $content       = $this->input->post("content",true);
         $created_date  = $this->input->post("created_date",true);
         $due_date      = $this->input->post("due_date",true);

         $this->todo_m->insert_todo($content,$created_date,$due_date);
         
         redirect('/main/lists/');
         
         exit;

      } else {
         $this->load->view("todo/write_v");
      }

일케 날리면 http://ci/todo/main/lists 이주소가 나오며 객체없슴...뜨네요
'/'  슬래쉬가 안붙어여.....

xampp 루트경로가 ci고 todo를 만들었구요

웬지 경로문제일듯 한데....
cd
  todo
     application
    이하 ci구조동일.....

제가 놓친게 뭘까요...ㅠ

아니면 쿼리날려서 리스트를 부르면 될것 같긴 한데...뭔가 개운치 않은..ㅠ

config.php
<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');


$config['base_url'] = '';
$config['index_page'] = 'index.php';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
$config['url_suffix'] = '';
$config['language'] = 'english';
$config['charset'] = 'UTF-8';
$config['enable_hooks'] = FALSE;
$config['subclass_prefix'] = 'MY_';
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
$config['allow_get_array']  = TRUE;
$config['enable_query_strings'] = FALSE;
$config['controller_trigger'] = 'c';
$config['function_trigger']  = 'm';
$config['directory_trigger'] = 'd'; // experimental not currently in use
$config['log_threshold'] = 0;
$config['log_path'] = '';
$config['log_date_format'] = 'Y-m-d H:i:s';
$config['cache_path'] = '';
$config['encryption_key'] = '';
$config['sess_cookie_name']  = 'ci_session';
$config['sess_expiration']  = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = TRUE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name']  = 'ci_sessions';
$config['sess_match_ip']  = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path']  = "/";
$config['cookie_secure'] = FALSE;
$config['global_xss_filtering'] = FALSE;
$config['csrf_protection'] = FALSE;
$config['csrf_token_name'] = 'csrf_test_name';
$config['csrf_cookie_name'] = 'csrf_cookie_name';
$config['csrf_expire'] = 7200;
$config['compress_output'] = FALSE;
$config['time_reference'] = 'local';
$config['rewrite_short_tags'] = FALSE;
$config['proxy_ips'] = '';
 

 다음글 url 에 index.php 안없어지게..하는방법 (1)
 이전글 P75 설명 부분이 잘못된거 같네욤 (1)

댓글

변종원(웅파) / 2014/01/23 18:32:30 / 추천 0
index.php 없애기 적용되어 있는지요? 


todo 프로젝트 3.6절 진행되기 전까지는 주소에 index.php가 나와야 정상입니다.
바우바버 / 2014/01/24 10:20:18 / 추천 0

헛~~ 그렇군요.....인덱스 없애기는 적용안한듯(하고도 모를수도 ㅠㅠ)

ci/todo <= 리스트 나옵니다 index.php는 안보입니다

리스트중 보기 클릭시 =>http://ci/todo/index.php/main/view/1 으로 인덱스 나옵니다
쓰기 입력후 클릭시     =>http://ci/todo/main/lists 인덱스가 안나오네요,.....

인덱스 없애기를 한번더 보고 설정을 해줘바야겠습니다

날코딩만 하다 프레임 공부할려니..개념이 쉽지많은 않고
아직까지..는...프레임을 써야하는 이유가..와 닫질않습니다
(대부분의 함수는 다 만들어 놓고 쓰는지라) 

하지만 공부를 좀더 해보면 알게되겠죠 ^^

웅파님 감사합니다