Here is the directory structure I am using for my project:

```
assets
connection
    connection.php
controller
    Controller.php
include
    header.php
    footer.php
model
    Model.php
process
    add-data.php
view
    index.pp
    sales-form.php
    report.php
config.php
index.php

```

**First, its load the `index.php` file which contains this code:**

```
require_once("controller/Controller.php");
$controller = new Controller;
$controller->index();

```

**You see that it loads the `index()` method from the Controller.php file which code is below:** 

```
public function index () {      
    require_once('view/index.php');
}

```

**Now `index.php` file container this code:**

```
<?php require_once("include/header.php"); ?>
    <a class="btn btn-primary" href="view/sales-form.php">Record a new sales</a>
    <a class="btn btn-success" href="view/report.php">Search Report</a> 
<?php require_once("include/footer.php"); ?>

```

Now, you can see **Record a new sales** button link is this: **view/sales-form.php** but when I go to that link it's showing me that error message:

> 
> Warning: require\_once(config.php): failed to open stream: No such file
>  or directory in D:\xampp\htdocs\job-tasks\include\header.php on line 1
> 
> 
> 

**that sales-form.php file contains this code**

```
<?php require_once("../include/header.php"); ?>
<?php require_once("../include/footer.php"); ?>

```

**This header.php code this below:**

```
<?php require_once('config.php'); ?>
html code....

```

can you tell me how can I solve that link/location related issues?