Zend Framework

Zend_Form: setting displayGroupPrefixPath in config file

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.5.1
  • Fix Version/s: 1.5.3
  • Component/s: Zend_Form
  • Labels:
    None
  • Fix Version Priority:
    Must Have

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)

Activity

Hide
Matthew Weier O'Phinney added a comment -

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.

Show
Matthew Weier O'Phinney added a comment - 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.
Hide
Matthew Weier O'Phinney added a comment -

Fix committed to trunk and 1.5 and 1.6 release branches.

Show
Matthew Weier O'Phinney added a comment - Fix committed to trunk and 1.5 and 1.6 release branches.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
30m
Original Estimate - 30 minutes
Remaining:
30m
Remaining Estimate - 30 minutes
Logged:
Not Specified
Time Spent - Not Specified