Tag Archives: codeigniter views within views
Codeigniter Load Views within Views
Codeigniter load views within views : Sometimes we need to load views in another view, it is very simple to load view from another view using the $this->load->view(‘your_view’) method. Here in this article, we are going to explain to how you can load views within views.
Syntax : Codeigniter load views within views
We use the below syntax to load in controller, we can use the same syntax to load view in another view.
$this->load->view('your_view');
Example
Here is an example in which we have loaded another view in main view.
Welcome to the home page.
More Information Goes Here.......
On the same way we can load multiple views in any view.