<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Welcome extends CI_Controller { public function index() { $this->load->view('header'); $this->load->view('index'); $this->load->view('footer'); } function about(){ $this->load->view('header'); $this->load->view('about'); $this->load->view('footer'); } } /* filename and classname of controller should be same means filename should be Welcome.php if classname if Welcome extends CI_Controller. /* base_url/index.php/Controllername/functionname
