# Unable to use formLabel helpers in Mezzio / Twig

**URL:** <https://discourse.laminas.dev/t/unable-to-use-formlabel-helpers-in-mezzio-twig/3664>\
**Category:** Mezzio\
**Created:** [April 15, 2024, 3:12pm UTC](https://discourse.laminas.dev/t/unable-to-use-formlabel-helpers-in-mezzio-twig/3664 "2024-04-15T15:12:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjivsharmalv](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/sanjivsharmalv/32/1164_2.png) [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Post date:** [April 15, 2024, 3:12pm UTC](https://discourse.laminas.dev/t/unable-to-use-formlabel-helpers-in-mezzio-twig/3664/1 "2024-04-15T15:12:37Z")

</div>

My App Config Provider has

```auto
$aggregator = new ConfigAggregator([
...
...
...

    \Laminas\Form\ConfigProvider::class,
...

```

But still I get the following error:

Unknown “formLabel” function.

When I try to use formLabel in twig:

```auto
{{ formLabel(eventForm.get('my-event-name')) }}

```

---

<div class="post-metadata">

**Author:** ![Tyrsson](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/tyrsson/32/1664_2.png) [@Tyrsson](https://discourse.laminas.dev/u/Tyrsson)\
**Post date:** [April 21, 2024, 12:55am UTC](https://discourse.laminas.dev/t/unable-to-use-formlabel-helpers-in-mezzio-twig/3664/2 "2024-04-21T00:55:09Z")

</div>

As far as I am aware you will need to make them available to Twig as extensions.
