function input($args) { $value = scbForms::get_value($args['name'], $this->data); if (!empty($this->prefix)) { $args['name'] = array_merge($this->prefix, (array) $args['name']); } return scbForms::input_with_value($args, $value); }
function input($args) { $default = isset($args['default']) ? $args['default'] : null; $value = scbForms::get_value($args['name'], $this->data, $default); if (!empty($this->prefix)) { $args['name'] = array_merge($this->prefix, (array) $args['name']); } return scbForms::input_with_value($args, $value); }