Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-12-2008, 02:44 PM
Junior Member
 
Join Date: Apr 2008
Posts: 1
Default How to remove 'dt' and 'dd' created from in the Zend_Form

Hello all!

I created a formular with Zend_Form but when I watch the html code I see the unwanted tags like "<td>" and "<dd>". Please tell me how to remove these.

Many thanks for your time.

Thank you.

Alex
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-12-2008, 04:02 PM
Junior Member
 
Join Date: Mar 2008
Posts: 8
Default

you can change decorator options:

Code:
    $username = new Zend_Form_Element_Text('username');
    $username -> addValidator('Alnum')
    -> setRequired(true)
    -> addFilter('StringTrim')
    -> addFilter('StringToLower')
    -> addDecorator('Label',array('tag'=>'div'))
    -> setLabel('Username');
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

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



All times are GMT. The time now is 10:49 PM.