public function init() { parent::init(); $this->loadDefaultDecorators(); $this->setAttribs(array('id' => 'filter_form', 'class' => 'classifieds_browse_filters field_search_criteria'))->setAction($_SERVER['REQUEST_URI'])->getDecorator('HtmlTag')->setOption('class', 'browseclassifieds_criteria classifieds_browse_filters'); // Generate //$this->generate(); // Add custom elements $this->getAdditionalOptionsElement(); /* foreach( $this->getFieldElements() as $fel ) { if( $fel instanceof Zend_Form_Element ) { $fel->clearDecorators(); $fel->addDecorator('ViewHelper'); Engine_Form::addDefaultDecorators($fel); } else if( $fel instanceof Zend_Form_SubForm ) { $fel->clearDecorators(); $fel->setDescription('<label>' . $fel->getDescription() . '</label>'); $fel->addDecorator('FormElements') ->addDecorator('HtmlTag', array('tag' => 'div', 'id' => $fel->getName() . '-element', 'class' => 'form-element')) ->addDecorator('Description', array('tag' => 'div', 'class' => 'form-label', 'placement' => 'PREPEND', 'escape' => false)) ->addDecorator('HtmlTag2', array('tag' => 'div', 'id' => $fel->getName() . '-wrapper', 'class' => 'form-wrapper browse-range-wrapper')); } } * */ }
public function init() { // Add custom elements $this->getMemberTypeElement(); $this->getDisplayNameElement(); $this->getAdditionalOptionsElement(); parent::init(); $this->loadDefaultDecorators(); $this->getDecorator('HtmlTag')->setOption('class', 'browsemembers_criteria'); }
public function init() { $settings = Engine_Api::_()->getApi('settings', 'core'); $allow_search_location = $settings->getSetting('ynmember_allow_search_location', 1); // Add custom elements $this->getMemberTypeElement(); $this->getDisplayNameElement(); if ($allow_search_location) { $this->getLocationElement(); } $this->getOrderElement(); $this->getAdditionalOptionsElement(); parent::init(); $this->loadDefaultDecorators(); $this->setAttribs(array('class' => 'global_form_box search_form', 'id' => 'filter_form'))->setMethod('GET'); $this->getDecorator('HtmlTag')->setOption('class', 'browsemembers_criteria'); }