Probléme d'inclure un fichier css dans un projet php
Posté : 14 déc. 2019, 21:18
Slaut tout le monde , j'ai besoin d'aide svp .
J'ai un probléme : j'utilise la balise link pour ajouter un fichier css dans un projet php , mais ça ne fonctionne pas
j'utilise un virtual host de wamp server
Voilà le dossier httpd-vhosts.conf :
et dans le fichier C:\wamp64\www\PHP\MVCCour2\App\Template\headertemplatestart.php se trouve le tag <link>
voilà le code du headertemplatestart.php :
et voila l'emplacement du fichier css : C:\wamp64\www\PHP\MVCCour2\Public\css\main.css
merci pour votre aide
J'ai un probléme : j'utilise la balise link pour ajouter un fichier css dans un projet php , mais ça ne fonctionne pas
j'utilise un virtual host de wamp server
Voilà le dossier httpd-vhosts.conf :
Code : Tout sélectionner
<VirtualHost *:4444>
ServerName mymvcapp.com
ServerAlias mymvcapp.com
ServerAlias www.mymvcapp.com
DocumentRoot "${INSTALL_DIR}/www/PHP/MVCCour2/Public"
<Directory "C:/wamp/www/PHP/MVCCour2/Public">
Order allow,deny
Allow from all
</Directory>
voilà le code du headertemplatestart.php :
Code : Tout sélectionner
<!DOCTYPE html>
<html>
<head>
<title>Employees Manage</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="/css/main.css">
merci pour votre aide