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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:26:01+00:00 2026-06-10T11:26:01+00:00

we have a php project using zend framework and in a page we have

  • 0

we have a php project using zend framework and in a page we have multicheck box
for this i use this code to create multiCheckBox:

$mozoo      = new Zend_Form_Element_MultiCheckbox('mozoo');

then i add the elements to it using this code

$mozoo->addMultiOption ($tagRecord['name'],$tagRecord['name'])

$tagRecord is a record i read from database.
some of options are the parents of each other and i want to make beautiful my multiCheckBox using Jquery with showing and hiding these elements i have to store chekboxes parents some where so i thought it would be nice to set it in id and class (class = the id of the parent, id = the checkbox itself).

how can i set options fot multi option box?

  • 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-10T11:26:03+00:00Added an answer on June 10, 2026 at 11:26 am

    ZF will automatically create multi options with each own id, but it is not possible to pass in class value on each multi option, well, unless you go into ZF core and fix it yourself, which I dont recommend to do.

    The far better solution would be to implement your own decorator that will render the multi checkbox element in different way than viewRenderer decorator would (by calling View/Helper/FormMultiCheckbox), but this approach would require lots of coding and deeper understanding of how form decorators work.

    To help you understand form decorators see here

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

Sidebar

Related Questions

I have to work on this project written using Zend Framework. This is a
I have PHP project and I am using Zend Framework. There is a library
Hi all I am using Zend framework for my PHP project. Basically I have
I have 2 applications. App1 is some old selfmade php project, not using Zend.
I am working on a project using zend framework, php, mysql on ubuntu. I
I have a project written with zend framework. I was using xampp for my
We are using PHP 5.3 and Zend Framework for a large project, and I've
I have install ZendFramewrok with instruction on: http://framework.zend.com/manual/en/learning.quickstart.create-project.html and when I try to run
We have several php projects. The projects use the Zend Framework and we also
I'm using Doctrine 1.2 as my ORM for a Zend Framework Project. I have

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.