| 제목 | 재질문 드립니다. ci 2.1 + hmvc 5.4 | ||
|---|---|---|---|
| 글쓴이 | 정우파파 | 작성시각 | 2011/11/29 16:33:06 | 
| 
                         | 
                |||
| 
                        가. 환경 : ci 2.1.0 + hmvc 5.4 나. 설정 : 1. 도메인/ci/_app/config/congif.php $config['base_url'] = '도메인/ci' $config['index_page'] = ''; $config['modules_locations'] = array('' => '../../',); 2. 도메인/ci/_app/config/routes.php $route['default_controller'] = "welcome"; 다. 디렉토리 구조 도메인/ci 도메인/ci/_app 도메인/ci/_sys 도메인/ci/images 도메인/ci/css 도메인/ci/js 도메인/ci/welcome 도메인/ci/welcome/controllers 도메인/ci/welcome/models 도메인/ci/welcome/views 라. .htaccess 설정 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /ci/ RewriteCond $1 !^(index\.php|js|css|images|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> 마. index.php 설정 : 위치 = http://도메인/ci/index.php $system_path = '_sys'; $application_folder = '_app'; 질문사항 1] http://도메인/ci/ 접근시 welcome 클래스의 index() 함수의 내용이 잘 보여집니다. 문제가 없는줄 알고 일단 고고 질문사항 2] http://도메인/ci/welcome 접근시 welcome 클래스의 index() 함수의 내용이 보이지 않습니다. http://도메인/ci/index.php/welcome/ 접근시에 welcome 클래스의 index() 함수의 내용이 잘 보여집니다. 깊은시름... 질문사항2의 index.php를 사용안하는 방법이 없을가요?  | 
                |||
| 다음글 | form_validation 여러 변수 중에 한개가 입... (3) | ||
| 이전글 | 페이징네이션 (6) | ||
| 
                             
                                한대승(불의회상)
                                /
                                2011/11/29 17:34:06 /
                                추천
                                0
                             
                             | 
                    
| 
                             
                                정우파파
                                /
                                2011/12/02 10:56:32 /
                                추천
                                0
                             
                            
                                RewriteCond %{REQUEST_FILENAME} !-d  주석처리 하니 동작을 하는듯 합니다. 
                         | 
                    
http://codeigniter-kr.org/lecture/view/213/page/1/