/** * Create a date input field. * * @param string $name * @param string $value * @param array $options * @return string * @static */ public static function date($name, $value = null, $options = array()) { return \Collective\Html\FormBuilder::date($name, $value, $options); }
public function date($name, $value = null, $options = []) { $options = $this->setOptionClasses($name, $options, ['form-control']); $options['autocomplete'] = 'noway'; $controlOptions = array_filter($options, function ($key) { return $key !== 'label'; }, ARRAY_FILTER_USE_KEY); $controlHtml = parent::date($name, $value, $controlOptions); return $this->renderControl('date', $controlHtml, $name, $value, $options); }