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 837635
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:10:22+00:00 2026-05-15T05:10:22+00:00

A set of forms (using Zend_Form) that I have been working on were causing

  • 0

A set of forms (using Zend_Form) that I have been working on were causing me some headaches trying to figure out what was wrong with my XML configuration, as I kept getting unexpected HTML output for a particular INPUT element. It was supposed to be getting a default value, but nothing appeared.

It appears that the following 2 pieces of XML are not equal when used to instantiate Zend_Form:

Snippet #1:

<form>
  <elements>
    <test type="hidden">
      <options ignore="true" value="foo"/>
    </test>
  </elements>
</form>

Snippet #2:

<form>
  <elements>
    <test type="hidden">
      <options ignore="true">
        <value>foo</value>
      </options>
    </test>
  </elements>
</form>

The type of the element doesn’t appear to make a difference, so it doesn’t appear to be related to hidden fields.

Is this expected or not?

  • 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-05-15T05:10:23+00:00Added an answer on May 15, 2026 at 5:10 am

    As it was rather quiet on here, I took a look further into the source code and documentation.

    On line 259 of Zend_Config_Xml, the SimpleXMLElement object attributes are converted to a string, resulting in:

    options Object of: SimpleXMLElement 
        @attributes Array [2]   
            label   (string:7) I can't see this because 
            value   (string:21) something happens to this
    

    becoming

    options (string:21) something happens to this
    

    So, I hunted through the documentation only to find that "value" is a reserved keyword when used as an attribute in an XML file that is loaded into Zend_Config_Xml:

    Example #2 Using Tag Attributes in Zend_Config_Xml

    "..Zend_Config_Xml also supports two
    additional ways of defining nodes in
    the configuration. Both make use of
    attributes. Since the extends and the
    value attributes are reserved keywords
    (the latter one by the second way of
    using attributes), they may not be
    used…"

    Thus, it would appear to be "expected" according to the documentation.
    I’m not entirely happy that this is a good idea though, considering "value" is an attribute of form elements.

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

Sidebar

Related Questions

I have an asp.net 4.0 application that is using forms authentication set to a
I'm using Zend_Form with a registration page. I have a checkbox, that if checked,
I'm new to Qt and have been designing forms using Qt Creator. I've noticed
I'm using Zend_Form to output a set group of checkboxes: <label style=white-space: nowrap;><input type=checkbox
Is there a way to set the StartPosition of a Windows Forms form using
I have authentication mode set to forms in my asp.net web.config but am still
I have Reporting Services set up with Forms Authentication. Our app is sitting over
If you set the Visible property of a Windows Forms control to true, that
I'm trying to set the DisplayMember Property of my ListBox in a windows forms
When using a Zend_Form , the only way to validate that an input is

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.