Issues

ZF-3213: Zend_Form: setting displayGroupPrefixPath in config file

Issue Type: Bug Created: 2008-05-07T00:21:04.000+0000 Last Updated: 2008-07-24T09:26:43.000+0000 Status: Resolved Fix version(s): - 1.5.3 (28/Jul/08)

Reporter: Carsten Halsband (deim) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: Attachments:

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

Posted by Matthew Weier O'Phinney (matthew) on 2008-05-09T11:35:13.000+0000

I was able to reproduce with the following INI file:

<pre class="highlight">
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:

<pre class="highlight">
$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.

Posted by Matthew Weier O'Phinney (matthew) on 2008-07-24T09:26:43.000+0000

Fix committed to trunk and 1.5 and 1.6 release branches.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts