Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7764701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:58:53+00:00 2026-06-01T14:58:53+00:00

I am using decorators for my forms in a Zend Framework (version 1.10.6) application

  • 0

I am using decorators for my forms in a Zend Framework (version 1.10.6) application and they output elements with attribute helper that W3C finds invalid against HTML5 Doctype.

<input type="hidden" name="control" value="search" helper="formHidden" id="control">

W3C Validator is giving me this error:
Attribute helper not allowed on element input at this point.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T14:58:54+00:00Added an answer on June 1, 2026 at 2:58 pm

    Nothing I found about this issue is working so after many hours of trying different approaches I found it easier to change the core (yes, I know it’s not recommended but it is still a solution).

    Here is the answer (for input hidden):

    • go to Zend/View/Helper/FormHidden.php
    • at the end of the file you will find this line of code

      return $this->_hidden($name, $value, $attribs);
      
    • add this code BEFORE it

      unset($attribs['helper']);
      

    What it does is remove the helper attribute from the array of attributes applied to the input hidden element.

    The same applies for all form elements.

    Example for input text:

    • go to Zend/View/Helper/FormText.php
    • at the end of the file you will find these lines of code

      $xhtml = '<input type="text"'
             . ' name="' . $this->view->escape($name) . '"'
             . ' id="' . $this->view->escape($id) . '"'
             . ' value="' . $this->view->escape($value) . '"'
             . $disabled
             . $this->_htmlAttribs($attribs)
             . $endTag;
      
      return $xhtml;
      
    • add this code BEFORE it

      unset($attribs['helper']);
      

    Doing this for all form elements my website passed W3C HTML5 validation, so I am satisfied with this solution and hope it gets resolved with Zend Framework 2.0

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Zend Framework I'm using the standard FormErrors decorator to output form errors in
I'm using Zend_Form from Zend Framework 1.10.6 to render a html form. In this
I am new to zend framework. I have used zend form and decorators to
i am using the layouts in zend framework. as if now it looks ugly
Using online interfaces to a version control system is a nice way to have
Using ASP.NET MVC there are situations (such as form submission) that may require a
I have a zend form that I'm initializing as follows: $form = new Form_XYZ();
I am using this ViewScript for my standard form elements: <div class=field id=field_<?php echo
I'm using django_webtest to test my application. I faced with problem when try to
For the sake of learning, I'm trying to chain decorators that are defined by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.