Codeigniter MVC Framework PHP

First sample program – CodeIgniter

Step 1 : In controller, create a file name “sampleController.php” on below path path: C:\xampp\htdocs\CodeIgniter\application\controller. Write following code: <?php class sampleController extends CI_Controller {   public function __construct() { parent::__construct(); }   //This is Default function of controller public function index() { //Loading view file sampleView.php $this->load->view(‘sampleView’); }   public function Hello() { //Loading view […]