| 제목 | 아... 알다가도 모를 에러 좀 봐주세요. | ||
|---|---|---|---|
| 글쓴이 | 팔랑 | 작성시각 | 2014/01/19 21:25:08 |
|
|
|||
|
아무리 생각해도 알 수가 없어요 루트파일에서 $route['(users|users/(:any))'] = "users/index"; 일단, 콘트롤러에서 헤더/푸터 가져오도록
public function _remap($method)
{
$this->load->view('_header');
if( method_exists($this, $method) ) $this->{"{$method}"}();
$this->load->view('_footer');
}
하고요, 다음 인덱스와 기본적으로 리맵되지 않은 것들은 그냥 페이지를 로드하게 했어요
그리고 로그인 함수
function index()
{
switch($this->uri->segment(2)) {
case 'login' : $this->login(); break;
case 'logout' : $this->logout(); break;
default: $this->usual();
}
}
function usual()
{
$rem = (!$this->uri->segment(2)) ? $this->uri->segment(1) : $this->uri->segment(1).'_'.$this->uri->segment(2);
$htm = (file_exists('application/views/users/'.$rem.'.php')) ? 'users/'.$rem : '404';
$this->load->view($htm);
}
function login()
{
$this->load->view('users/login');
}
그냥 폼만 있는 뷰파일인데 가져오질 못해요An Error Was Encountered
Unable to load the requested file: users/login.php
이상한건 다른파일은 잘 가져오거든요, 근데 view 폴더의 users 폴더에 있는 것만 가져오질 못해요. 에러내용도 자세히 안나오고... 뭔가... 순환참조 오류에 빠진 듯 한데... |
|||
| 다음글 | db name 어떻게 가져오나요? (2) | ||
| 이전글 | function get_list($table='ci_b... (3) | ||
|
팔랑
/
2014/01/19 22:31:14 /
추천
0
|
파일이름을 잘못썼어요 ㅠㅠㅠㅠㅠㅠ