<?php if (! defined('BASEPATH')) exit('No direct script access allowed');
class Go extends CI_Controller {
public function index()
{
//$this->load->view('welcome_message');
$this->load->helper('url');
$this->load->view('start_view');
$this->load->view('header_view');
$this->load->view('menu_view');
$this->load->view('top_panel_view');
$this->load->view('domaci_view');
$this->load->view('world_view');
$this->load->view('latest_view');
$this->load->view('end_view');
}
public function contest()
{
$this->load->helper('url');
$this->load->view('start_view');
$this->load->view('header_view');
$this->load->view('menu_view');
$this->load->view('end_view');
}
}
當我嘗試訪問本地主機/網站/去/比賽時,我得到了404。默認控制器是「去」。我的一些配置值:Codeigniter功能控制器404
$config['index_page'] = '';
$config['base_url'] = 'http://localhost/sajt/go';
我的.htaccess文件:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
請告訴我問題???
安裝在網站名爲子目錄笨? – PhearOfRayne