Codeigniter Views Intro

Codeigniter Views : A view in codeigniter is a simple webpage which contains the html which is visible to the user.
Controller is responsible for loading the views or you can load view within a view.

Views are placed under the application/views folder.

Creating Codeigniter Views

Use editor and create the “my_view.php” in the views folder ie. application/views

Loading Views

You Can Load Views As Below :

Note : You Need not to add “.php” while loading the view.

Now We Are going to load above view in