TbHtml::activeSearchQueryControlGroup PHP Method

activeSearchQueryControlGroup() public static method

Generates a control group with a search field for a model attribute.
See also: self::activeControlGroup
public static activeSearchQueryControlGroup ( 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 control group.
    public static function activeSearchQueryControlGroup($model, $attribute, $htmlOptions = array())
    {
        return self::activeControlGroup(self::INPUT_TYPE_SEARCH, $model, $attribute, $htmlOptions);
    }

Usage Example

Exemplo n.º 1
0
 /**
  * Generates a control group with a search field for a model attribute.
  * @param CModel $model the data model.
  * @param string $attribute the attribute name.
  * @param array $htmlOptions additional HTML attributes.
  * @return string the generated row.
  * @see TbHtml::activeSearchFieldControlGroup
  */
 public function searchQueryControlGroup($model, $attribute, $htmlOptions = array())
 {
     $htmlOptions = $this->processRowOptions($model, $attribute, $htmlOptions);
     return TbHtml::activeSearchQueryControlGroup($model, $attribute, $htmlOptions);
 }
All Usage Examples Of TbHtml::activeSearchQueryControlGroup
TbHtml