fix
This commit is contained in:
@ -38,17 +38,11 @@ class TextInput extends BaseInput
|
||||
$paramsString = $this->createParams($this->paramsArray);
|
||||
$label = "";
|
||||
$input = "<input name='$this->name' $paramsString >";
|
||||
if($this->hasLabel == true) {
|
||||
if(is_string($this->label)){
|
||||
$label = "<label>$this->labelTitle</label>";
|
||||
}
|
||||
else {
|
||||
$label = $this->create()->fetch();
|
||||
}
|
||||
}
|
||||
|
||||
$this->createLabel();
|
||||
|
||||
$this->html = str_replace('{input}', $input, $this->inputTemplate->getInputTemplate());
|
||||
$this->html = str_replace('{label}', $label, $this->html);
|
||||
$this->html = str_replace('{label}', $this->labelString, $this->html);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
Reference in New Issue
Block a user