How to show symfony roles -
i'm working symfony 2.3. how can show user roles without (role_). want change view, in database intact.
when display roles in view have
- role_admin
- role_consultor
and want
- admin
- consultor
role entities need implement roleinterface. can add own custom fields such names want.
http://api.symfony.com/2.3/symfony/component/security/core/role/roleinterface.html
Comments
Post a Comment