|  |  | @ -10,6 +10,7 @@ namespace yii\jui; | 
			
		
	
		
		
			
				
					
					|  |  |  | use Yii; |  |  |  | use Yii; | 
			
		
	
		
		
			
				
					
					|  |  |  | use yii\base\Model; |  |  |  | use yii\base\Model; | 
			
		
	
		
		
			
				
					
					|  |  |  | use yii\base\InvalidConfigException; |  |  |  | use yii\base\InvalidConfigException; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | use yii\helpers\Html; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | /** |  |  |  | /** | 
			
		
	
		
		
			
				
					
					|  |  |  |  * InputWidget is the base class for all jQuery UI input widgets. |  |  |  |  * InputWidget is the base class for all jQuery UI input widgets. | 
			
		
	
	
		
		
			
				
					|  |  | @ -46,6 +47,9 @@ class InputWidget extends Widget | 
			
		
	
		
		
			
				
					
					|  |  |  | 		if (!$this->hasModel() && $this->name === null) { |  |  |  | 		if (!$this->hasModel() && $this->name === null) { | 
			
		
	
		
		
			
				
					
					|  |  |  | 			throw new InvalidConfigException("Either 'name' or 'model' and 'attribute' properties must be specified."); |  |  |  | 			throw new InvalidConfigException("Either 'name' or 'model' and 'attribute' properties must be specified."); | 
			
		
	
		
		
			
				
					
					|  |  |  | 		} |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		if($this->hasModel() && !array_key_exists('id', $this->options)) { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 			$this->options['id'] = Html::getInputId($this->model, $this->attribute); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 		} | 
			
		
	
		
		
			
				
					
					|  |  |  | 		parent::init(); |  |  |  | 		parent::init(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 	} |  |  |  | 	} | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |