this is not 100%. And it's maybe not ment to be used like this but what you
could do is create an hidden field, set a description and make de
description decorator escape => false.
Why can't u use setlabel? 'Cause you can't set the escape to false in the
decorator. It's always escaping.
Something like this:
$linkdecorator = array(
array('Description', array('escape'=>false)),
);
$link= self::createElement('hidden', link)
->setDescription(' help.php help ');
->setDecorators($linkdecorator);
Michel Morelli wrote:
>
> Hi all. I have this piece of code :
>
> $this->addDisplayGroup(array('id_brand','id_model','version'),'DatiMezzo',array('legend'
>
> => 'Dati automezzo'))
> ->addDecorator('HtmlTag', array('tag' => 'div));
> }
>
> And it is ok, the three elements are inside a fieldset. But now, I need
> to insert a link text after the "version" element (inside the fieldset
> html element). A text like "If help click help.php here ".
>
> How can I do this ?
>
> --
> Michel 'ZioBudda' Morelli [email protected]
> Consulenza sistemistica in ambito OpenSource.
> Sviluppo applicazioni web dinamiche (LAMP+Ajax)
> Telefono: 0200619074
> Telefono Cell: +39-3939890025 -- Fax: +39-0291390660
>
> http://www.ziobudda.net ICQ: 58351764
> http://www.ziobuddalabs.it Skype: zio_budda
> http://www.ajaxblog.it MSN:
> [email protected]
> JABBER: [email protected]
>
>
>
-----
visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/
--
View this message in context:
http://www.nabble.com/How-to-add-a-Link-into-a-group-of-Zend-Form-elements--tp21440126p21441363.html
Sent from the Zend Framework mailing list archive at Nabble.com.