CI 묻고 답하기

제목 nginx 연동 질문입니다.
글쓴이 M군 작성시각 2012/09/26 15:57:35
댓글 : 3 추천 : 0 스크랩 : 0 조회수 : 21536   RSS
nginx 연동 후 http://test.test.com/index.php

를 입력 하고 나면

Welcome to CodeIgniter!

The page you are looking at is being generated dynamically by CodeIgniter.

If you would like to edit this page you'll find it located at:

application/views/welcome_message.php

The corresponding controller for this page is found at:

application/controllers/welcome.php

If you are exploring CodeIgniter for the very first time, you should start by reading the User Guide.

이렇게 정상 작동을 합니다. 그래서 application아래에 controllers폴더에 helloworld.php를 생성했습니다.

그리고 $this->load->model('helloworld_model'); 를 통해 모델을 로드했고 DB내용을읽어와서

$this->load->view('helloworld_view',$data); view를 로드해 정보를 넘겨 주었습니다.

http://test.test.com/index.php/helloworld/index

를 호출하면 404가뜨고 nginx 로그를 보면 실제로 저 파일을 찾고있습니다.

제가 알기로는 다운로드받아서 그냥 서버에 올리면 작동이 된다고 알고있는데...(당연php,mysql,nginx는 설치됫습니다)

뭐가 잘못된거지 알수고 없습니다...nginx위 root 위치는 CI/까지이며 이 하위에

application, system, user_guide폴더가 있고 저는 2.1.2버전을 사용중입니다.

도와주세요...ㅠ
 

 다음글 소스를 올려 달라고 하셔서 올리겠습니다 (4)
 이전글 index.php 삭제 후 /js, /css 등 경로를... (9)

댓글

한대승(불의회상) / 2012/09/26 16:01:45 / 추천 0
helloworld.php 소스를 올려 주세요.
변종원(웅파) / 2012/09/26 16:08:12 / 추천 0
helloword.php 내부의 클래스명이 틀렸을 것 같네요. index()함수는 존재하는거죠?
M군 / 2012/09/26 16:41:26 / 추천 0
 일단 routes.php에서 $route['default_controller'] = "welcome"; 를 $route['default_controller'] = "helloworld";

로 바꾸면 정상으로 출력이 됩니다-_-;;;