how to remove all dtddwrappers and labels on zend form elements?
Answer / Mohammad Shehbaz
To remove all DTD wrappers and labels from Zend Form elements, you can customize the decorators used by the form. Here's an example:
```php
$element = new Zend_Form_Element_Text('username');
// Remove DTD wrapper
$element->setDecorators(array(
array('ViewHelper', array('escape' => false)),
));
// Remove label decorator
$element->removeDecorator('Label');
```
| Is This Answer Correct ? | 0 Yes | 0 No |
Do you know what are the methods used in decorator?
Where's the model?
How to write a program to show the function of action helper?
Suppose your Zend engine supports the mode Then how can u configure your PHP Zend engine to support mode?
What is the way in which the html can be used to form elements?
Who developed the zend framework?
How to include css in zend framework?
Zend framework and wordpress integration?
How to render view file from controller in zend framework?
How to connect to the mysql database in zend framework2?
Zend_cache provides a generic way to cache any data?
I want to use a sql function or perform calculations in a statement I'm generating with zend_db_select. How can I do this?