2016-08-09 1 views
-1

routes.php404 페이지를 찾을 수 없습니다 CodeIgniter의 URL이 - PHP

$route['default_controller'] = 'Index'; 

config.php를

$config['base_url'] = 'http://www.tabaneshahr.com/'; 
$config['index_page'] = ''; 

컨트롤러/Index.php는 :

class Index extends CI_Controller { 

    public function index() 
    { 
     $data = array(); 

     //$this->blade->render('index' , $data); 
     $this->load->view('welcome_message'); 
    } 
} 

나는 가늘다. K의 모든 것을 좋아하지만,이 URL이 작동하지 않는 : 당신의 경로에서

http://tabaneshahr.com/

답변

1

변화

$route['default_controller'] = 'Index'; 

나는 이름을 것

$route['default_controller'] = 'index'; 

으로 다른 컨트롤러 확인 컨트롤러라는 이름의 인덱스

이있는 경우 홈에 같은 내 자신이 문제로 실행할 수 있는지 컨트롤러의 당신의 파일 이름은 파일 이름

같은 : 내 경로를 변경하지만 'didn를 Index.php는

+0

일하지 마라. –

+1

@ S.M_Emamian 다른 파일과 클래스에 – user4419336

+0

과 다른 이름을 지정해보십시오. ;-) –

관련 문제