ZF-2769: form() view helper should allow requesting open tag only

Issue Type: Improvement Created: 2008-02-29T14:44:54.000+0000 Last Updated: 2008-03-21T16:25:29.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Matthew Weier O'Phinney (matthew) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_View

Related issues: Attachments:


The form() helper currently requires content, which it then wraps in a form tag. In some cases, being able to open the form only would be useful, particularly as the helper escapes all attributes. This would allow easier creation of view scripts for rendering forms created with Zend_Form.

Suggested API is the same; simply allow passing a boolean false value for the content, which would trigger an opening tag only:

<pre class="highlight">
<?= $this->form('login', false, $attribs) ?>


Posted by Matthew Weier O'Phinney (matthew) on 2008-02-29T15:38:51.000+0000

Updated in trunk and release-1.5 branch.

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.