Issues

ZF-3213: Zend_Form: setting displayGroupPrefixPath in config file

Description

when setting options to a Zend_Form you can not set a displayGroupPrefixPath.

Tried with Config(_Ini): - displayGroupPrefixPath.myname.prefix / displayGroupPrefixPath.myname.path (failed)

--> should handled in method setOptions()

No workaround (for setting this option in a configuration file)

Comments

I was able to reproduce with the following INI file:


displayGroupPrefixPath.myname.prefix = "My_Decorator"
displayGroupPrefixPath.myname.path = "My/Decorator/"
elements.foo.type = "text"
elements.foo.name = "foo"
displayGroups.foofoo.elements[] = "foo"
displayGroups.foofoo.name= "foofoo"

and PHP:


$config = new Zend_Config_Ini(dirname(__FILE__) . '/config.ini', 'form');
$form   = new Zend_Form($config);
$dg     = $form->foofoo;
var_export($dg->getPluginLoader());

It's clear from the output that the custom prefix path was not present.

Scheduling for next mini release.

Fix committed to trunk and 1.5 and 1.6 release branches.