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

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -