/** * Renders the hint tag. * @param string $content the hint content. It will NOT be HTML-encoded. * @param array $options the tag options in terms of name-value pairs. These will be rendered as * the attributes of the hint tag. The values will be HTML-encoded using [[Html::encode()]]. * * The following options are specially handled: * * - tag: this specifies the tag name. If not set, "div" will be used. * * @return $this the field object itself */ public function hint($content, $options = []) { $options = array_merge($this->hintOptions, $options); $options['hint'] = $content; $this->parts['{hint}'] = Html::activeHint($this->model, $this->attribute, $options); return $this; }