질문 Q #12946
V3.0.3에서 뷰 폴더에 관한 ?
람이 2016-02-17 01:01:40

view 디렉토리를 public 하게 유지하려는 경우, view 폴더를 application 폴더 바깥으로 빼는 것도 가능합니다.

이동 후에, 메인 index.php 파일을 열으셔서, $system_path, $application_folder 그리고 $view_folder 의 값을 설정합니다. e.g. ‘/www/MyUser/system’.

 

라고 되어 있는데요 ....

제가 설치한 구조를 보면

 

/_ci  ----> system

/public_html

     /_www ---> 이곳에 application

     /skin <----- 이곳을 뷰 폴더로 사용할 수 있나요 ?

 

있다면 어디를 어떻게 하라는 걸까요 ?

 

위에 설명을 보고 했는데도 안되어서요 ?

답변 4
#1 한대승(불의회상) 2016-02-17 06:12:58

index.php 파일을 열어보시면 아래와 같이 되어 있을겁니다.

$view_folder 값을 변경해 주시면 됩니다.

/*
 * ---------------------------------------------------------------
 * VIEW FOLDER NAME
 * ---------------------------------------------------------------
 *
 * If you want to move the view folder out of the application
 * folder set the path to the folder here. The folder can be renamed
 * and relocated anywhere on your server. If blank, it will default
 * to the standard location inside your application folder. If you
 * do move this, use the full server path to this folder.
 *
 * NO TRAILING SLASH!
 */
$view_folder = '';

 

#2 닉 2016-02-17 09:29:28
$view_folder = '../skin';
#3 닉 2016-02-17 10:28:06

@람이

아이고 몇개 더 있었네요.

public_html이 도큐먼트 루트면..

index.php파일에

$system_path = '../_ci';

$application_folder = '_www ';

$view_folder = '../skin';

#4 람이 2016-02-18 00:11:33

@닉 님 감사합니다.

제대로 해결 하였습니다.

 

@한대승님 감사합니다.