init() public method

Initializes the widget.
public init ( )
 /**
  * @inheritdoc
  */
 public function init()
 {
     if ($this->model === null) {
         throw new InvalidConfigException('This functionality works only with inputs created from models');
     }
     $this->captchaAction = Yii::getAlias('@captchaRoute');
     parent::init();
 }
Example #2
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
 }