2014-12-01 2 views
0

몇 달 전에 codeigniter 3 -dev를 사용하여 웹 사이트를 시작했습니다. 오늘은 github의 최신 버전으로 업그레이드했습니다 .... 로컬 호스트에서는 잘 작동하지만 업로드 할 때 서버에서 모델을 찾을 수 없습니다 !!업 그레 이드 후 모델을 찾을 수 없습니다

http://epatil.com/ci_test 

내 유일한 컨트롤러 :

<?php 

defined('BASEPATH') OR exit('No direct script access allowed'); 

class Welcome extends CI_Controller { 
    public function index() 
    { 
     $this->load->model('test'); 
     $this->test->echo_print(); 
     $this->load->view('welcome_message'); 
    } 
} 

내 test.php 모델

<?php 
class test extends CI_Model { 

    public function __construct(){ 
    parent::__construct(); 
    } 

    function echo_print(){ 
     echo 1234; 
    } 


} 

그녀의 EIS 결과 :

Unable to locate the model you have specified: Test 

BTW 변화가 같으면 테스트하는 이름입니다 도움 마 이 경우 아니었다 반면 그것은 버전, 이전 버전 3 사용자 가이드, 클래스 이름 MUST 일치하는 파일 이름에 따르면

+0

모델 클래스 "test"를 "Test"로 변경하려고 시도합니다. –

+0

클래스 이름을 "Test"로 변경하지 못하면 파일 이름을 "Test_model.php"로 변경 한 다음 클래스 이름을 "Test_model" – Craig

+0

내 업데이트 된 답변 확인 –

답변

관련 문제