/** * @inheritdoc */ public function init() { parent::init(); if ($this->fields) { foreach ($this->fields as $key => $value) { if (isset($this->{$key})) { $value = $this->{$key}; } $this->{$key} = $value; } } }
/** * @inheritdoc */ public function init() { parent::init(); static::$app =& $this; }