Codeigniter, Web Development
Welcome to Part 06 of the Codeigniter 4 Tutorial Series in Urdu/Hindi. Today in this Codeigniter 4 Video Tutorial, We are going to learn Building Responses using Views in Codeigniter 4 by MVC View Concept.
A view is simply a web page, or a page fragment, like a header, footer, sidebar, etc. In fact, views can flexibly be embedded within other views (within other views, etc.) if you need this type of hierarchy.
Views are never called directly, they must be loaded by a controller. Remember that in an MVC framework, the Controller acts as the traffic cop, so it is responsible for fetching a particular view. If you have not read the Controllers page, you should do so before continuing.
Using the example controller you created in the controller page, let’s add a view to it.