안녕하세요 날 코딩으로 php로만 개발하닥 처음 CI를 접하게 되었습니다.
책을 구할 수 없어 포럼 코드를 참고해서 만들어 가고 있는데
도저히 html a태그의 href로 페이지 이동이 안되서 질문 드립니다.
views - top.php
<a href="/Auth/login">로그인</a>
controllers - auth.php
class Auth extends CI_Controller
{
function __construct()
{
parent::__construct();
$this->load->helper(array('form', 'url'));
}
public function login()
{
$this->load->view('top');
$this->load->view('login_v');
$this->load->view('bottom');
}
}
rewrite 모듈도 키고 .htaccess도 수정했는데도 오류가
Not Found
The requested URL /Auth/login was not found on this server.
위와 같은 오리지널 오류가 뜨는데 페이지 이동 방법좀 상세히 알 수 있을까요..?
baseurl/index.php/Auth/login 을 입력하면 설정된 404에러가 뜨네요...
<a href="/index.php/auth/login">로그인</a>
로도 해보세요.
매뉴얼을 다시 한번 쭉 읽어보시길 바랍니다. ^^
주소는 소문자....
<a href="/auth/login">로그인</a>
위 코드처럼 소문자로 해보시겠어요?