/** * Initalize! * @return void */ public function init() { parent::init(); // Reserve garp-form for parent forms $class = $this->getAttrib('class'); if (!$class || 'garp-form' === $class) { $class = 'garp-subform'; } $this->setDecorators(array('FormElements')); $this->addDecorator('HtmlTag', array('class' => $class)); }