질문
Q #10308
views 폴더 변경하기..
완장6호
2013-01-31 18:07:27
CI 폴더를 www 폴더와 동일 위치에 놓고..
home/user/CI
home/user/www
www 폴더를 views 폴더로 잡고 싶습니다.
CI/index.php 파일을 www 에 카피후 application 이랑 system 폴더는 수정했는데.. views 수정하는게 없네요..
Loader.php 파일의 __construct 부분에서
$this->_ci_view_paths = array('/home/user/www/' => TRUE);
로 수정했는데.. 호출한 뷰 페이지가 보이긴 하는데...
뷰페이지에 <? 태그가 들어가면 그기서 오류가 나는듯 하네요..
매뉴얼 뒤져봐도 views 폴더 수정하는건 못찾겠네요..
function __construct() { $this->_ci_view_path = APPPATH.'views/'; $this->_ci_ob_level = ob_get_level(); $this->_ci_library_paths = array(APPPATH, BASEPATH); $this->_ci_helper_paths = array(APPPATH, BASEPATH); $this->_ci_model_paths = array(APPPATH); log_message('debug', "Loader Class Initialized"); }