I've just started a Codeigniter project and I'm facing issues in linking the header and footer files to a page inside the view's subfolder. My directory structure is
- Application
- Views
- includes
- header.php
- footer.php
- details
- details-page.php
- index.php
- includes
- Views
- System
- Assets
Linking the header and footer to details-page.php
using require_once
returns
"failed to open stream: No such file or directory" error.
It works when I use $this->load->view('includes/header');
to link the files but shows the error when using require_once('../includes/header.php');