Need refresh in order that twig condition to be seen in html -


i want display depending on user role. working need refresh page in order changes occur. think problem because of html, displayed first. how can resolve this? no need refresh in order work..?

{% include "@file" {role : app.security.token.user._access } %} 

@file

<th>address</th> {% if role == 'admin' %}     <th>{{'role'}}</th> {% endif %} 


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -