2011-03-14 59 views
1

斐伊川一種形式的文字...如何添加超鏈接使用Zend形式

我想有使用Zend形式,請建議我怎麼能做到這一點的內容描述之間鏈接文本超? ? thanx提前。這裏是我試圖讓文本超鏈接的代碼,它不起作用,而是按照原樣顯示內容。

$selectTemplate = new Zend_Form_Element_Hidden('report_template'); 
$selectTemplate->setLabel('Select Template:') 
      ->setDescription('No message templates have been added, add a message template <a href="admin-report-addreporttemplate">here</a>'); 

回答

4

您需要將描述裝飾逃逸選項設置爲false:

$selectTemplate->getDecorator('description')->setOption('escape', false); 
+0

感謝名單,現在的工作。 – Lakshman 2011-03-14 08:23:47