Advertisement
Guest User

YoGuuu

a guest
Apr 10th, 2009
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. <?php
  2. class My_App3_Form extends Zend_Form
  3. {
  4.     protected $_formDecorator = array(
  5.     'FormElements',
  6.     array('HtmlTag', array('tag' => 'ul')),
  7.     'Form'
  8.     );
  9.     protected $_elementDecorator = array(
  10.     'ViewHelper',
  11.     'Errors',
  12.     'Label',
  13.     array('HtmlTag', array('tag' => 'li'))
  14.     );
  15.  
  16.     public function __construct($options = null)
  17.     {
  18.         parent::__construct($options);
  19.     }
  20.     public function init()
  21.     {
  22.         $this->setAttrib('accept-charset', 'UTF-8');
  23.     }
  24.    
  25.     public function getFormDecorator()
  26.     {
  27.     return $this->_formDecorator;
  28.     }
  29.     public function getElementDecorator()
  30.     {
  31.     return $this->_elementDecorator;
  32.     }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement