Exemplo n.º 1
0
 /**
  * @return string
  */
 public function buildOpenTag()
 {
     if (empty($this->attributes['method'])) {
         $this->attributes['method'] = 'get';
     }
     return parent::buildOpenTag();
 }
Exemplo n.º 2
0
 /**
  * @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();
 }