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

Codeigniter Views Subfolders


Advertisements

Add Comment

đź“– Read More