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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-01-2008, 01:40 PM
Junior Member
 
Join Date: May 2008
Posts: 1
Default Zend_Form_Element::removeAttrib($name) problem

Hello,

I am trying to implement Zend_Form_Element::removeAttrib($name); am I missing something? I can not seem to get this to work. I just receive a Call to undefined method Zend_Form_Element_Password::removeAttrib() error. I am just trying to remove the id's that ZF adds to form elements.

Here is the code I am using:
$password = new Zend_Form_Element_Password('password');
$password->setLabel('Password');
$password->removeAttrib('id');
$password->setAttrib('class', 'text');
$password->setRequired(true);

Thanks
Sean
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:25 AM.