# What's the right way to use '$this-\>templating-\>render'?

**URL:** https://forum.mautic.org/t/whats-the-right-way-to-use-this-templating-render/14568
**Category:** Development
**Created:** [May 30, 2020, 12:12pm UTC](https://forum.mautic.org/t/whats-the-right-way-to-use-this-templating-render/14568 "2020-05-30T12:12:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alexeimolina](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexeimolina/32/637_2.png) [@alexeimolina](https://forum.mautic.org/u/alexeimolina)
#### Post date: [May 30, 2020, 12:12pm UTC](https://forum.mautic.org/t/whats-the-right-way-to-use-this-templating-render/14568/1 "2020-05-30T12:12:43Z")

</div>

Hi, I want to be able to render some service on email builder, I’m trying to use

$content = $this-\>templating-\>render(‘HelloWorldBundle:SubscribedEvents\EmailToken:token.html.php’);

but I can’t find any documentation about symfony and “templating” or Idk what I’m not seeing

thanks in advance

---

<div class="post-metadata">

### Author: ![alexeimolina](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexeimolina/32/637_2.png) [@alexeimolina](https://forum.mautic.org/u/alexeimolina)
#### Post date: [May 30, 2020, 12:14pm UTC](https://forum.mautic.org/t/whats-the-right-way-to-use-this-templating-render/14568/2 "2020-05-30T12:14:43Z")

</div>

symfony version 2.8, mautic version 2.6

---

<div class="post-metadata">

### Author: ![alexeimolina](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexeimolina/32/637_2.png) [@alexeimolina](https://forum.mautic.org/u/alexeimolina)
#### Post date: [May 31, 2020, 5:13pm UTC](https://forum.mautic.org/t/whats-the-right-way-to-use-this-templating-render/14568/3 "2020-05-31T17:13:33Z")

</div>

mautic 2.16\* my bad, at last reply
