for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/2amigos/yii2-selectize-widget
* @copyright Copyright (c) 2013-2017 2amigOS! Consulting Group LLC
* @license http://opensource.org/licenses/BSD-3-Clause
*/
namespace dosamigos\selectize;
use yii\helpers\Html;
* SelectizeTextInput
*
* @author 2amigos.us <[email protected]>
class SelectizeTextInput extends InputWidget
{
* @inheritdoc
public function run()
if ($this->hasModel()) {
echo Html::activeTextInput($this->model, $this->attribute, $this->options);
} else {
echo Html::textInput($this->name, $this->value, $this->options);
}
parent::run();