[eluser]Asshai[/eluser]
Hi people.
First of all, I apologize for my english. I'm a student of Computer Science and after learning a basic php and mysql, I'm trying to get my first Codeigniter web app working.
So, this is an example of my 'domain.com/home' controller/class called 'Home':
Code:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Home extends CI_Controller {
/**
* Class Home
*
* Main page of lesenpixel.com
*/
public function __construct(){
parent::__construct();
session_start();
$data['content'] = 'home';
$this->load->view('template', $data);
}
public function index(){
}
}
/* End of file home.php */
/* Location: ./application/controllers/home.php */
I've got another 3 like this one, for a navigation menu: Home - About - Services - Contact
The problem is while surfing arround by pressing the 'backspace' key instead of using the nav menu, I'm getting a 404 error. With the nav menu or refreshing the page works. But not with the 'backspace key'.
Any help will be appreciated.
Cheers.