symfony - How to use OR Condition in twig and symfony2 -


{% if ( session.get('userrole') != 'role client user' ) or  ( session.get('actionpermission') == 'true' ) %}      {# stuff #}  {% endif; %} 

{% if (session.get('userrole') != 'role client user' or  session.get('actionpermission') == 'true') %}      {# ... stuff #}  {% endif %} 

Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -