Issues

ZF-5881: Array notation & view script decorator interoperation

Issue Type: Improvement Created: 2009-02-25T03:30:36.000+0000 Last Updated: 2009-02-25T05:43:14.000+0000 Status: Resolved Fix version(s): Reporter: Josh Ribakoff (jshpro2) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

  • Zend_View

Related issues: Attachments:

Description

It would be nice if I did not have to explicitly call setElementsBelongTo() on subforms when using a viewscript decorator for rendering the parent form. Once I had my forms working I decided to make one of my forms use a viewscript decorator which broke it, since using the viewscript decorator entails disabling the formElements decorator and since the "default" array notation is handled in the formElements decorator, this seemed awkward to me.

In other words applying the viewScript decorator to a form should not disable array notation on it's children, I would think

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2009-02-25T05:42:58.000+0000

Currently, setElementsBelongTo() is automatically called as part of the FormElements decorator. It is not called before this as we then have a chicken/egg problem: if the sub forms are nested, the parent sub form needs to inform the child, and so on.

While it may be awkward, it's also the trade off you have for the flexibility of using ViewScript or your own custom decorators.

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