Example #1
0
 public function preRenderWrapLabel()
 {
     if ($this->labelWrap) {
         $label = new Label();
         return (string) $label->attribs($this->labelWrapAttributes);
     }
     return "";
 }
Example #2
0
 public function preRenderWithLabel()
 {
     if ($this->withLabel) {
         if ($this->autoID and !isset($this->attributes['id']) and isset($this->attributes['name'])) {
             $this->attributes['id'] = 'input' . ucfirst($this->attributes['name']);
         }
         $label = new Label($this->withLabel);
         if (isset($this->attributes['id'])) {
             $label->for($this->attributes['id']);
         }
         return (string) $label;
     }
     return "";
 }