protected function select2Field()
	{
		if (isset($this->htmlOptions['options'])) {
			$options = $this->htmlOptions['options'];
			unset($this->htmlOptions['options']);
		}

		if (isset($this->htmlOptions['events'])) {
			$events = $this->htmlOptions['events'];
			unset($this->htmlOptions['events']);
		}

		if (isset($this->htmlOptions['data'])) {
			$data = $this->htmlOptions['data'];
			unset($this->htmlOptions['data']);
		}

		if (isset($this->htmlOptions['asDropDownList'])) {
			$asDropDownList = $this->htmlOptions['asDropDownList'];
			unset($this->htmlOptions['asDropDownList']);
		}

		if (isset($this->htmlOptions['val']))
		{
			$val = $this->htmlOptions['val'];
			unset($this->htmlOptions['val']);
		}

		echo $this->getLabel();
		echo $this->getPrepend();
		$this->widget(
			'booster.widgets.TbSelect2',
			array(
				'model' => $this->model,
				'attribute' => $this->attribute,
				'options' => isset($options) ? $options : array(),
				'events' => isset($events) ? $events : array(),
				'data' => isset($data) ? $data : array(),
				'asDropDownList' => isset($asDropDownList) ? $asDropDownList : true,
				'val' => isset($val) ? $val : null,
				'htmlOptions' => $this->htmlOptions,
				'form' => $this->form
			)
		);
		echo $this->getAppend();
		echo $this->getError() . $this->getHint();
	}
protected function select2Field()
	{
		if (isset($this->htmlOptions['options'])) {
			$options = $this->htmlOptions['options'];
			unset($this->htmlOptions['options']);
		}

		if (isset($this->htmlOptions['events'])) {
			$events = $this->htmlOptions['events'];
			unset($this->htmlOptions['events']);
		}

		if (isset($this->htmlOptions['data'])) {
			$data = $this->htmlOptions['data'];
			unset($this->htmlOptions['data']);
		}

		if (isset($this->htmlOptions['asDropDownList'])) {
			$asDropDownList = $this->htmlOptions['asDropDownList'];
			unset($this->htmlOptions['asDropDownList']);
		}

		if (isset($this->htmlOptions['val']))
		{
			$val = $this->htmlOptions['val'];
			unset($this->htmlOptions['val']);
		}

		echo $this->getLabel();
		echo $this->getPrepend();
		$this->widget(
			'booster.widgets.TbSelect2',
			array(
				'model' => $this->model,
				'attribute' => $this->attribute,
				'options' => isset($options) ? $options : array(),
				'events' => isset($events) ? $events : array(),
				'data' => isset($data) ? $data : array(),
				'asDropDownList' => isset($asDropDownList) ? $asDropDownList : true,
				'val' => isset($val) ? $val : null,
				'htmlOptions' => $this->htmlOptions,
				'form' => $this->form
			)
		);
		echo $this->getAppend();
		echo $this->getError() . $this->getHint();
	}
protected function select2Field ( ) { if ( isset ( $ this -> htmlOptions [ 'options' ] ) ) { $ options = $ this -> htmlOptions [ 'options' ] ; unset ( $ this -> htmlOptions [ 'options' ] ) ; } if ( isset ( $ this -> htmlOptions [ 'events' ] ) ) { $ events = $ this -> htmlOptions [ 'events' ] ; unset ( $ this -> htmlOptions [ 'events' ] ) ; } if ( isset ( $ this -> htmlOptions [ 'data' ] ) ) { $ data = $ this -> htmlOptions [ 'data' ] ; unset ( $ this -> htmlOptions [ 'data' ] ) ; } if ( isset ( $ this -> htmlOptions [ 'asDropDownList' ] ) ) { $ asDropDownList = $ this -> htmlOptions [ 'asDropDownList' ] ; unset ( $ this -> htmlOptions [ 'asDropDownList' ] ) ; } if ( isset ( $ this -> htmlOptions [ 'val' ] ) ) { $ val = $ this -> htmlOptions [ 'val' ] ; unset ( $ this -> htmlOptions [ 'val' ] ) ; } echo $ this -> getLabel ( ) ; echo $ this -> getPrepend ( ) ; $ this -> widget ( 'booster.widgets.TbSelect2' , array ( 'model' => $ this -> model , 'attribute' => $ this -> attribute , 'options' => isset ( $ options ) ? $ options : array ( ) , 'events' => isset ( $ events ) ? $ events : array ( ) , 'data' => isset ( $ data ) ? $ data : array ( ) , 'asDropDownList' => isset ( $ asDropDownList ) ? $ asDropDownList : true , 'val' => isset ( $ val ) ? $ val : null , 'htmlOptions' => $ this -> htmlOptions , 'form' => $ this -> form ) ) ; echo $ this -> getAppend ( ) ; echo $ this -> getError ( ) . $ this -> getHint ( ) ; }
Renders a select2Field
@return mixed|void
Renders a select2Field