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


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 07-30-2008, 06:16 PM
Junior Member
 
Join Date: Jul 2008
Posts: 3
Default

I am also having this problem.

Zend_Form forms are not showing their descriptions.

I have to
Code:
echo $this->form->middleName->getDescription();
in order to see descriptions set with

Code:
$middleName->setDescription('DEBUG TEST');
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 07-30-2008, 08:00 PM
Junior Member
 
Join Date: Jul 2008
Posts: 3
Default

Problem solved. Was same as mentioned earlier in thread:

You have to add the Decorator for Description to get Description to display.

Here is way to render HTML in the Description:
Code:
       $middleName = new Zend_Form_Element_Text('middleName');          
       $middleName->setLabel('Middle name');     
       $middleName->addDecorator('Description', array('escape' => false,   'placement'=> 'prepend') );             
       $middleName->setDescription('<H1>DEBUG TEST</H1>');
Hth someone.

anomie from Access Data Services

Last edited by anomie : 07-30-2008 at 08:04 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 07-30-2008, 08:03 PM
Junior Member
 
Join Date: Jul 2008
Posts: 3
Default

Oh, and heard on IRC #zftalk on irc.freenode.net that in ZF 1.6 the description decorator may be made default which means that if you addDescription() to an element, then it will display by default .
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:55 AM.