Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
zend framework zend_form adding fieldset
Old 02-22-2008, 01:27 PM zend framework zend_form adding fieldset
Super Talker

Posts: 130
Trades: 0
Does anyone know using Zend Framework's Zend_FORM to add a fieldset and legend.

Thank you
__________________
flann

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
flann is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-22-2008, 04:33 PM Re: zend framework zend_form adding fieldset
Super Talker

Posts: 130
Trades: 0
I've figured it out.

PHP Code:
    function addAction() {
        
$form = new Zend_Form;
        
$form->setAction('/admin/group/process')
              ->
setMethod('post');
              
         
$form->setAttrib('class''admin_form');
         
         
$group = new Zend_Form_Element_Text('group');
         
$form->addElement($group);
         
$group->setLabel('Group');
         
         
$form->addDisplayGroup(array('group'), 'groups', array("legend" => "Group Add"));
         
         
$submit = new Zend_Form_Element_Submit('submit');
         
$form->addElement($submit);
         
//$submit->setLabel('Save');
         
$form->submit->setValue("Save");
         
         
         
$this->view->body $form;
    } 
You use $form->addDisplayGroup and then pass in an array of options at the end of the call.
__________________
flann

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
flann is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to zend framework zend_form adding fieldset
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.09632 seconds with 12 queries