# Necessity of replacing HelperPluginManagerFactory to use zend-form view helpers

**URL:** <https://discourse.laminas.dev/t/necessity-of-replacing-helperpluginmanagerfactory-to-use-zend-form-view-helpers/485>\
**Category:** Mezzio\
**Tags:** expressive, zend-form\
**Created:** [February 18, 2018, 3:11pm UTC](https://discourse.laminas.dev/t/necessity-of-replacing-helperpluginmanagerfactory-to-use-zend-form-view-helpers/485 "2018-02-18T15:11:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinsmith](https://avatars.discourse-cdn.com/v4/letter/k/b5e925/32.png) [@kevinsmith](https://discourse.laminas.dev/u/kevinsmith)\
**Post date:** [February 18, 2018, 3:11pm UTC](https://discourse.laminas.dev/t/necessity-of-replacing-helperpluginmanagerfactory-to-use-zend-form-view-helpers/485/1 "2018-02-18T15:11:03Z")

</div>

Hello. The documentation at  
[https://docs.zendframework.com/zend-expressive/cookbook/using-zend-form-view-helpers/](https://docs.zendframework.com/zend-expressive/cookbook/using-zend-form-view-helpers/)

suggests to replace HelperPluginManagerFactory or provide a delegate  
to configure Zend\View\HelperPluginManager with zend form view helpers.

But is this necessary?

The zend-form config provider (zendframework/zend-form/src/ConfigProvider.php)  
returns the form view helpers with a ‘view\_helpers’ key for which, it seems to me, the existing  
HelperPluginManagerFactory already checks for.

I have tested this and zend-form view helpers seem to work without replacing HelperPluginManagerFactory.

Kevin S

---

<div class="post-metadata">

**Author:** ![ocramius](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/ocramius/32/23_2.png) [@ocramius](https://discourse.laminas.dev/u/ocramius)\
**Post date:** [February 19, 2018, 7:47am UTC](https://discourse.laminas.dev/t/necessity-of-replacing-helperpluginmanagerfactory-to-use-zend-form-view-helpers/485/2 "2018-02-19T07:47:59Z")

</div>

Consider editing

> <https://github.com/zendframework/zend-expressive/blob/4abd9d3dd48059cee14cc4df78ab6475e24e0067/docs/book/cookbook/using-zend-form-view-helpers.md>

  
and sending a pull request - easier than discussing here 🙂

Marco Pivetta

[http://twitter.com/Ocramius](http://twitter.com/Ocramius)

[http://ocramius.github.com/](http://ocramius.github.com/)
