TwigΒΆ
This bundle ships with a simple Twig Filter that allows you serialize objects directly from twig template:
{# templates/index/posts.json.twig #}
{{ posts|serialize }}
This bundle ships with a simple Twig Filter that allows you serialize objects directly from twig template:
{# templates/index/posts.json.twig #}
{{ posts|serialize }}