Zend Framework

form() view helper should allow requesting open tag only

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Trivial Trivial
  • Resolution: Fixed
  • Affects Version/s: 1.5.0RC1
  • Fix Version/s: 1.5.0
  • Component/s: Zend_View
  • Labels:
    None
  • Fix Version Priority:
    Must Have

Description

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:

<?= $this->form('login', false, $attribs) ?>
...
</form>

Activity

Hide
Matthew Weier O'Phinney added a comment -

Updated in trunk and release-1.5 branch.

Show
Matthew Weier O'Phinney added a comment - Updated in trunk and release-1.5 branch.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

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