@@ 88-92 (lines=5) @@ | ||
85 | // save value of properties if they exist |
|
86 | $configKeys = ['cssClass', 'default', 'format', 'path', 'label', 'clickable']; |
|
87 | ||
88 | foreach ($configKeys as $key) { |
|
89 | if (isset($this->config[$key])) { |
|
90 | $this->{$key} = $this->config[$key]; |
|
91 | } |
|
92 | } |
|
93 | ||
94 | // save path |
|
95 | $this->path = str_replace('~', Config::get('root'), $this->path); |
@@ 122-126 (lines=5) @@ | ||
119 | 'attributes', 'options', 'size'] |
|
120 | ); |
|
121 | ||
122 | foreach ($configKeys as $key) { |
|
123 | if (isset($this->config[$key])) { |
|
124 | $this->{$key} = $this->config[$key]; |
|
125 | } |
|
126 | } |
|
127 | ||
128 | // css class |
|
129 | $this->cssClass .= ' form-control'; |