diff --git a/yii/bootstrap/TypeAhead.php b/yii/bootstrap/TypeAhead.php index bc2dd05..757a76e 100644 --- a/yii/bootstrap/TypeAhead.php +++ b/yii/bootstrap/TypeAhead.php @@ -107,9 +107,11 @@ class TypeAhead extends Widget } if ($this->name === null) + { throw new InvalidParamException( get_class($this) . ' must specify "form", "model" and "attribute" or "name" property values' ); + } return Html::textInput($this->name, '', $this->options); }