Witam,
mam problem, otóż przestały mi działać style CSS, zauważyłem, że plik BOOTSTRAPU css działa lecz moje style przestały działać. Aplikacje piszę w wzorcu MVC, to moje początki z tym wzorcem projektowym.
Proszę o pomoc :)
PLIK, View
namespace App\Engine;
class View
{
public function render($file)
{
require __DIR__ . '/../../views/templates/main/head.php';
require __DIR__ . '/../../views/templates/main/header.php';
require __DIR__ . '/../../views/templates/main/nav.php';
require __DIR__ . '/../../views/' . $file .'.php';
require __DIR__ . '/../../views/templates/main/footer.php';
}
}
PLIK: TEMPLATE/MAIN/HEAD.PHP
<head>
<title>Namioty willowe</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="Paweł Antyporowicz">
<meta http-equiv="X-Ua-Compatible" content="IE=edge, chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="UTF-8">
<link rel="stylesheet" href="<?php echo URL ?>/css/nav.css">
<link rel="stylesheet" href="<?php echo URL ?>/css/main.css">
<link rel="stylesheet" href="<?php echo URL ?>/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Lato:400,900&subset=latin-ext" rel="stylesheet">
<script src="<?php echo URL ?>js/bootstrap.min.js"></script>
</head>
<body>
PLIK: PATH
define('URL','http://localhost/namioty');
PLIK: HTACCESS
RewriteEngine On
RewriteCond %{REQUEST_FILENEMAE} !-d
RewriteCond %{REQUEST_FILENEMAE} !-f
RewriteCond %{REQUEST_FILENEMAE} !-l
AddType text/css .css
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]