mardi 4 août 2015

How to access a entity class from twig page

Suppose I have an entity class named Userinfo where the fields are name, guid, status...

So now from a twig page if i want to show all available name from the entity class Userinfo, how i can do that.

as an example --- in the page there can a table where it will show -- name and status.

So from entity class Userinfo all the names and their status will be shown.

Can someone knows how to dynamically show the data into the twig page from an entity class, can you kindly give me an example if possible.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire