TbHtml::activeSearchQueryField PHP Method

activeSearchQueryField() public static method

Generates a search query input for a model attribute.
public static activeSearchQueryField ( CModel $model, string $attribute, array $htmlOptions = [] ) : string
$model CModel the data model.
$attribute string the attribute.
$htmlOptions array additional HTML attributes.
return string the generated input.
    public static function activeSearchQueryField($model, $attribute, $htmlOptions = array())
    {
        return self::activeTextInputField('search', $model, $attribute, $htmlOptions);
    }

Usage Example

 /**
  * Renders a search query field for a model attribute.
  * @param CModel $model the data model.
  * @param string $attribute the attribute.
  * @param array $htmlOptions additional HTML attributes.
  * @return string the generated input.
  * @see TbHtml::activeSearchField
  */
 public function searchQuery($model, $attribute, $htmlOptions = array())
 {
     return TbHtml::activeSearchQueryField($model, $attribute, $htmlOptions);
 }
All Usage Examples Of TbHtml::activeSearchQueryField
TbHtml