0 votes
in CodeIgniter by
Elaborate the views in the CodeIgniter.

1 Answer

0 votes
by
All the markup files like header, footer, sidebar, etc are present in the view folder. In order to reuse them the programmer has to embed them in the controller file anywhere. This is to be

done as they can't be called directly hence, they have to be loaded in the controller's file.Syntax of the view:

In order to view the syntax the programmers have to create a file and have to save that in the application/views folder. For a better understanding please review the following example:

<!DOCTYPE html>

<html>

<head>

<title>Codeigniter View</title>

</head>

<body>

<h1>Codeigntier View</h1>

</body>

</html>
...