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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:28:10+00:00 2026-05-31T17:28:10+00:00

$mon = new Zend_Form_Element_Checkbox(‘days[mon]’); $tue = new Zend_Form_Element_Checkbox(‘tue’); how will I access days[mon] element

  • 0
 $mon = new Zend_Form_Element_Checkbox('days[mon]');
 $tue = new Zend_Form_Element_Checkbox('tue');

how will I access “days[mon]” element inside view script for the form

$form = new Zend_Form();
$form->addElement($mon);

$form->setDecorator('form',array('ViewScript','viewscript'=>'form.phtml'));

I can easily access “tue” inside form.phtml

   $this->element->tue 

but how to access “days[mon]” ??

  • 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-31T17:28:11+00:00Added an answer on May 31, 2026 at 5:28 pm

    As far as I remember, for this puposes you should use subforms.

    For example:

            $mainForm = new Zend_Form();
            $daySubForm = new Zend_Form_SubForm();
            $mon = new Zend_Form_Element_Checkbox('mon');
    
            $daySubForm->addElement($mon);
            $mainForm->addSubForm($daySubForm, 'days');
    
            var_dump($mainForm->days->mon);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

var date = new Date();//Mon Mar 15 2010 12:40:05 GMT+0300 (MSK) var omg =
I have columns Mon, Tue, wed, thu, fri, sat, sun with timestamps for every
The header on my site script includes the following: header(Expires: Mon, 26 Jul 1997
I'm trying to create a Date like this: date = new Date(year-1900, mon-1, day,
I have a form for adding new students to a Database and a php
Using the following: var date = new Date(parseInt(jsonDate.substr(6))); I get: Mon Feb 22 1993
I am new to PHP and am writing a PHP script that contains a
I have a bash script that includes the command: mv old.txt new.txt Old.txt doesn't
$columns = array('mon','thu','wed','tue', 'fri', 'sat', 'sun'); $num_cols = count($columns); echo <table>; echo <tr>; foreach($columns
please see the following code. String s = Monday; if(s.subString(0,3).equals(Mon){} String s2 = new

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.