Views
What is view
View envelope contains all the markup documents header, footer, sidebar, and so forth. They can be reused by implanting anyplace in the controller. They are the interface structure which is shown on the client's program and can never be called legitimately, they must be stacked in the controller's record.
View syntax
Make a document and spare it in application/sees organizer. For instance, we have made a document Firstview.php,
Loading View
View can't be gotten to legitimately. It is constantly stacked in the controller document. The accompanying line is utilized to stack a view page.
$this->load->view('page_name');
Compose your view's page name in the section. You don't have to indicate .php except if you are utilizing some other augmentation.
Presently, go to your controller record (Main.php) and compose this code as demonstrated as follows.
Loading Multiple Views
Your view may contain a few documents like header, footer, side menu, structure, and so forth. Once in a while you may need to stack more than one document at the same time. All things considered, basically call $this->load->view() on various occasions.