Tutorialsplane

Codeigniter Views Subfolders


Codeigniter views subfolders : You can create sub folders in “application/views” folder and can add your files inside it.

Subfolders Syntax

$this->load->view("YourFolder/filename");

Codeigniter views subfolders example

Example : Create a new folder “layouts” and add a new file “header.php”

$this->load->view("layouts/header");

Codeigniter Views Subfolders

Models

Connect Database

Helpers

Libraries

Helper Reference

Library Reference

Database Reference