First of all I apologize for not being able to express myself correctly, I am still learning php and I came across the following problem. I am setting up a site for studies and in the root I created the folders:
- css (where is the materialize file that I need to call)
- template (where I created a file named
cabecalho.php
and saved in it the call to the materialize css file and my navbar) - Tasks (where I created the file
tarefa.php
that by include I call thecabecalho.php
in the template folder and I have the problem).
In the root folder I have the index.php
In index.php
I give the following include:
include ('template/cabecalho.php');
It then loads my header by calling the materialize css file and my navbar. In the file header.php I call the css file of materialize as follows:
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection"/>
So long everything perfect, my index loads normally.
My problem happens when I access the tarefa.php
file, when I give include in cabecalho.php
it does not load the materialize file, leaving my navbar totally unconfigured not loading the framework.
In tarefa.php
my include looks like this:
include ('../template/cabecalho.php');
With this it loads the navbar but not the materialize .css file.
Follow prints: