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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-09-2008, 05:08 PM
Junior Member
 
Join Date: Apr 2008
Location: Barcelona, Spain
Posts: 3
Default Zend_Form_Element disabled

Maybe I've missed it, but please tell me if there is a programmatic way to print an element and make it disabled when rendered.
Something like this maybe?
PHP Code:
$cellular = new Zend_Form_Element_Text('cellular');
$cellular->setValue($cellular->name);
$cellular->setDisabledtrue); 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 07:57 PM
Member
 
Join Date: Mar 2007
Posts: 34
Default

PHP Code:
$cellular->setAttrib('disabled'true); 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 09:43 AM
Junior Member
 
Join Date: Apr 2008
Location: Barcelona, Spain
Posts: 3
Default thanks

thank you very much
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:37 PM.