Vladimir Tsukanov
Vladimir Tsukanov

Reputation: 4459

Zend_Forms Errors Decorator - remove html tags

Error decorator input errors such way:

  <ul class="error">
     <li>Error message</li>
 </ul>

How can i remove this tags and leave only error message text?

Upvotes: 0

Views: 790

Answers (2)

nnedoklanov
nnedoklanov

Reputation: 321

I think a neat solution to the problem is to create your own custom decorator, and use it instead of the "Errors" decorator.

Upvotes: 1

Richard Knop
Richard Knop

Reputation: 83755

$errors = $zendForm->getErrorMessages();

I think this should work? Not 100% sure though I don't have time to check documentation.

Upvotes: 0

Related Questions