How to load view in CodeIgniter?

Asked  Jul 25, 12:31 am 33 Views Add Your Answer
Asked  Jul 25, 12:31 am
0 Dislikes
0 Comments

1 Answers

Added  Jul 25, 12:33 am

Load view file from controller

<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Controller_name extends CI_Controller {
	
   public function index()
   {
       $this->load->view('file_name');
    }

}

0 Likes 0 Dislikes
0 Comments
×
Google login
SignUp with Email
X