I am trying to make a simple application in PHP (MVC). I made the routing and in Views i created an inc folder where head.php - header.php - footer.php exists. The head.php is included in header.php. In the head.php title there is a $pageTitle variable. The thing is that when i include the header.php in other files even if the $pageTitle is changing (according to the new value) no styles from css file is presented!!!
my head.php file is
','
my header.php is
std::string line, temp;
std::getline(file1,line,';'); //get a line. (till ';')
std::istringstream s1 (line); //init stream with the whole line
while(std::getline(s1,temp,',')){//get a number as string from the line. (till ',')
int n;
std::istringstream s2(temp);
s2>>n; //convert string number to numeric value
//now you can push it into the vector...
}
and i include the header
<head>
<meta charset="utf-8">
<title><?php echo $pageTitle ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="../src/css/bootstrap.min.css" rel="stylesheet">
<link href="../src/css/main.css" rel="stylesheet">
<script src="../src/js/bootstrap.min.js"></script>
</head>
I tried many different options but nothing worked. I searched and tried everything (i think)