Ejemplo n.º 1
0
 /**
  * @inheritdoc
  * @throws \yii\base\InvalidConfigException if [[name]] is not set.
  */
 public function init()
 {
     parent::init();
     if (empty($this->name)) {
         throw new InvalidConfigException('The "name" property must be set.');
     }
     if (substr_compare($this->name, '[]', -2, 2)) {
         $this->name .= '[]';
     }
 }
Ejemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->initDefaultButtons();
 }