/** * @return string */ public function buildOpenTag() { if (empty($this->attributes['method'])) { $this->attributes['method'] = 'get'; } return parent::buildOpenTag(); }
/** * @return string */ public function buildOpenTag() { $this->id; //< will build id if it is not set in $this->attributes $error = $this->form->getError($this->name); if (!empty($error)) { $this->addClass('error'); } return parent::buildOpenTag(); }