Я настраиваю свой новый веб-сайт с помощью frimework codeignter3. У меня уже есть контроллер по умолчанию, названный «home», и он отлично работает, но когда я попытался создать новый контроллер «activecode», я не могу получить доступ к вид.
Этот веб-сайт работает по адресу: Ubuntu 14.04 с apache2 и php с использованием codeigniter 3
Мой контроллер: Codeactive.php
<?php
class Codeactive extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->database();
$this->load->helper('url');
}
public function index() {
if ( ! file_exists(APPPATH.'/views/pages/ca.php')) {
//Whoops, we don't have a page for that!
show_404();
}
$data['title'] = ucfirst('Codeactive');
$this->load->view('templates/header', $data);
$this->load->view('templates/menu', $data);
$this->load->view('pages/ca', $data);
$this->load->view('templates/footer', $data);
}
}
Моя конфигурация:
$config['base_url'] = 'http://revendeur.pro/';
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
Мой route.php:
$route['default_controller'] = 'home';
$route['translate_uri_dashes'] = FALSE;
$route['codeactive/list'] = 'ca/list';
мой htaccess:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
Я попробовал все гуру в Google, и ничего не изменилось.