Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

[Cookbook] Zend\Form view helpers #335

Closed
RalfEggert opened this issue Apr 8, 2016 · 1 comment
Closed

[Cookbook] Zend\Form view helpers #335

RalfEggert opened this issue Apr 8, 2016 · 1 comment

Comments

@RalfEggert
Copy link
Contributor

Since the Zend\Form\View\HelperConfig is deprecated with release 2.8.0 of Zend\Form, how could this recipe be updated? I guess the new Config-Provider should be used, but how?

https://zendframework.github.io/zend-expressive/cookbook/using-zend-form-view-helpers/

@weierophinney
Copy link
Member

@RalfEggert for the 1.1 release of the skeleton, we'll be baking in the expressive-config-manager (likely as zend-config-manager or similar), and zend-component-installer. Once that's done, the recipe becomes "install zendframework/zend-form", and it's taken care of.

Until then, we can recommend creating a file config/autoload/zend-form.global.php with the contents:

<?php
use Zend\Form\ConfigProvider;

$provider = new ConfigProvider();
return $provider();

and that will essentially do everything needed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants