aid

Tuesday, 14 April 2015

Creating Views in MVC

Creating Views in MVC, A view is normally a web page, or a fragment of page, such as header, footer, sidebar or a web page, etc. views can lithely be entrenched within other views.

 Views are never called directly from a controller; view must be loaded by a controller or within a view also. Please Remember in an MVC framework, the Controller perform as the interchange pilfer, it is conscientious for fetching a exacting view. If you do not know what is controller read the working of Controllers from controller section.
For the example how to create view:-
<html>
<head>
<title>My first view</title>
</head>
<body>
          <h1>Welcome to My first view!</h1>
</body>
</html>

Then save the file in your application/view folder.

No comments:

Post a Comment