Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## controller [php]
- <?php
- $text = new Zend_Form_Element_Text('foo', array(
- 'label' => 'Foo:',
- 'decorators' => array(
- 'ViewHelper',
- 'Label',
- array('HtmlTag', array('tag' => 'div', 'class' => 'fooclass'))
- )
- ));
- echo $text;
- ## output [html]
- <div class="fooclass"><label for="foo" class="optional">Foo:</label>
- <input type="text" name="foo" id="foo" value=""></div>
Add Comment
Please, Sign In to add comment