I'm trying to load a css file depending on who's connected. So I've concateneted my url path with the variable, I don't seem to et any erros but the css doesnt show. If you've got any advice.
cheers
My code:
<head>
<meta charset="UTF-8" />
<title>{% block title %}{% endblock %}-S...</title>
{% block stylesheets %}
{% stylesheets
"@xxxMainBundle/Resources/css/general/*"
%}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<!--link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" integrity="sha256-MfvZlkHCEqatNoGiOXveE8FIwMzZg4W85qfrfIFBfYc= sha512-dTfge/zgoMYpP7QbHy4gWMEGsbsdZeCXz7irItjcC3sPUFtf0kuFbDz/ixG7ArTxmDjLXDmezHubeNikyKGVyQ==" crossorigin="anonymous"-->
{% if (app.session.get('courtierStyle') is defined) and (app.session.get('courtierStyle') is not null) %}
{% set varStyle = "Sygedel/MainBundle/Resources/css/courtier/"~ app.session.get('courtierStyle') %} /*I set the var here*/
<link rel="stylesheet" type="text/css" href="{{ varStyle }}"/> /* and pass it in th elink tag here"
{% endif %}
{% endblock %}
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
</head>