I have the following codes:
I have my index.php
<!DOCTYPE html>
<html>
<head>
<?php include('includes/head.php');?>
</head>
<body>
<?php include('includes/navbar.php');?>
<?php include('includes/footer.php');?>
</body>
</html>
head.php
<title>Titulo</title>
<link rel="stylesheet" type="text/css" href="../css/estilos.css">
<link rel="stylesheet" type="text/css" href="../css/estilos.css">
<link rel="stylesheet" type="text/css" href="../css/jquery.dataTables.css">
<link rel="icon" href="../img/favicon.ico" type="image/x-icon"/>
footer.php
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/estilos.js"></script>
<script src="js/jquery.dataTables.js"></script>
<script src="js/buttons.js"></script>
<script src="js/html5.min.js"></script>
<script src="js/buttons.print.min.js"></script>
<script src="js/row.js"></script>
<script src="js/jquery.table2excel.js"></script>
<script src="js/jquery-ui.min.js"></script>
<script src="js/listaSoftware.js"></script>
I also have a navbar but there is no point in putting it here.
All this works in the index, but if I create a folder called views and create a file home.php and
home.php
<!DOCTYPE html>
<html>
<head>
<?php include('../includes/head.php');?>
</head>
<body>
<?php include('../includes/navbar.php');?>
<?php include('../includes/footer.php');?>
</body>
</html>
This home finds the head and footer but these no longer find the JSy CSS. My directory
-css
-js
-includes
--footer.php
--navbar.php
--head.php
-view
--home.php
index.php
For example the Index works fine, but when I want to call home.php that is inside the view folder it does not find the paths of the js and css.
In what I am failing and I hope to have explained myself well.