Nick Regeling
Nick Regeling

Reputation: 17

Symfony 3 can't find my CSS asset file

Symfony can't seem to find my css file, I have looked through many webpages regarding this topic but none of them helped me.

Below is an example of my head:

<!DOCTYPE html>
<html>
<head>
    <title>Homepage</title>
    <link rel="stylesheet" type="text/css" href="{{ asset('css/theme.css') }}"/>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">

</head>

I have absolutely no clue what I am doing wrong.

Upvotes: 0

Views: 803

Answers (1)

GasKa
GasKa

Reputation: 663

Did you put your CSS file under /web/css directory ?

Three possibilities:

CTRL + F5
php bin/console cache:clear
php bin/console assets:install

Upvotes: 2

Related Questions