我是相當新的Zend Framework,我被卡住了。如何從Zend FormErrors中刪除默認<b></b>標籤
下面的代碼是我的窗體的裝飾的片段設置在那裏我遇到了一個問題:
// prepend errors to top
$this->setDecorators(
array(
'FormElements',
'Form',
array(
'FormErrors',
array(
'placement' => Zend_Form_Decorator_Abstract::PREPEND
)
)
)
);
當錯誤的觀點,我得到以下渲染:
<ul class="form-errors">
<li>
<b>First Name: </b>
<ul class="errors">
<li>You forgot to enter your First Name.</li>
</ul>
</li>
</ul>
如何你是否刪除了所有的html,包括標籤<b>First Name: </b>
?
http://devzone.zend.com/1240/decorators-with-zend_form/ – hakre