Basicly I have a contreller that named site.php , and have views:header.php,nav.php,content.php,footer.php etc. problem is how can run content_about.php? Im trying this url:site/about but I get an error on browser! Code is that:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class site extends CI_Controller {
public function index()
{
$this->home();
}
public function home()
{
$this->load->view("site_header");
$this->load->view("site_nav");
$this->load->view("content_home");
$this->load->view("site_footer");
}
public function about()
{
$this->load->view("site_header");
$this->load->view("site_nav");
$this->load->view("content_about");
$this->load->view("site_footer");
}
}