Guest User

Untitled

a guest
Jun 18th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. ## controller [php]
  2. <?php
  3. $text = new Zend_Form_Element_Text('foo', array(
  4. 'label' => 'Foo:',
  5. 'decorators' => array(
  6. 'ViewHelper',
  7. 'Label',
  8. array('HtmlTag', array('tag' => 'div', 'class' => 'fooclass'))
  9. )
  10. ));
  11. echo $text;
  12.  
  13.  
  14. ## output [html]
  15. <div class="fooclass"><label for="foo" class="optional">Foo:</label>
  16.  
  17. <input type="text" name="foo" id="foo" value=""></div>
Add Comment
Please, Sign In to add comment