<?php class Application_Form_Contact extends Zend_Form { public function init() { // Konfigurationsdaten lesen $config = new Zend_Config_Xml(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Forms.xml'); // Konfigurationsdaten übergeben $this->setConfig($config->contactform); // Setze individuelle Dekorierer für Sende Button und Newsletter Checkbox //$this->getElement('send')->setDecorators($config->contactform->elements->send->options->decorators->toArray()); $this->getElement('captcha')->setDecorators($config->contactform->elements->captcha->options->decorators->toArray()); } public function loadDefaultDecorators() { $this->setDecorators(array( 'FormElements', 'Form', )); } }