ZF-2551: Posiibility to add cusomized DisplagGroup

Issue Type: Improvement Created: 2008-02-03T00:16:08.000+0000 Last Updated: 2008-09-02T10:39:15.000+0000 Status: Resolved Fix version(s): - 1.6.0 (02/Sep/08)

Reporter: Karen Nalbandian (charly_75ar) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: Attachments:


Maybe I am wrong, but it seems that there is no way to extend Zend_Form_DisplayGroup and then add it to Zend_Form. Currently the addDisplayGroup() instantiates Zend_Form_DisplayGroup. It might be helpful to add the possibility to pass the prefix and the path where the extended class can be found as optional arguments of addDisplayGroup() or as additional keys of $options array. The other way could be using Zend_Loader_PluginLoader class and setting custom DisplayGroups location during Zend_Form instantiation exactly as for custom Element classes.


Posted by Matthew Weier O'Phinney (matthew) on 2008-02-13T10:14:01.000+0000

This is partially possible now in current trunk. It does not include any possibility of using the PluginLoader functionality, but you can specify a class to use for a display group either globally for the given form, or for an individual group:

<pre class="highlight">
// all display groups:

// single display group:
$form->addDisplayGroup(array('foo', 'bar'), 'foobar', array('displayGroupClass' => 'My_Custom_DisplayGroup'));

Both examples require that the class has either been loaded already or that it uses standard ZF naming conventions.

I will likely add additional capabilities for adding display groups in the future, including adding concrete display group instances and the ability to specify paths to display groups via a PluginLoader, so I will leave this ticket open to track that.

Posted by Matthew Weier O'Phinney (matthew) on 2008-03-05T09:51:59.000+0000

Scheduling for mini release following 1.5.0

Posted by Wil Sinclair (wil) on 2008-03-21T17:05:29.000+0000

This issue should have been fixed for the 1.5 release.

Posted by Wil Sinclair (wil) on 2008-03-25T20:29:10.000+0000

Please categorize/fix as needed.

Posted by Wil Sinclair (wil) on 2008-04-18T13:11:54.000+0000

This doesn't appear to have been fixed in 1.5.0. Please update if this is not correct.

Posted by Matthew Weier O'Phinney (matthew) on 2008-04-22T11:57:46.000+0000

Scheduling for next minor release.

Posted by Matthew Weier O'Phinney (matthew) on 2008-07-29T09:25:28.000+0000

This has been merged to the 1.6 release branch.

Posted by Wil Sinclair (wil) on 2008-09-02T10:39:15.000+0000

Updating for the 1.6.0 release.

Have you found an issue?

See the Overview section for more details.


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

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