/** * Initializes the widget. */ public function init() { parent::init(); $this->configs = array_replace_recursive($this->configs, ['dataProvider' => $this->dataProvider]); $this->configs = array_replace_recursive($this->configs, ['columns' => $this->columns]); $this->configs = array_replace_recursive($this->configs, ['dataProvider' => $this->dataProvider]); $this->configs = array_replace_recursive($this->configs, ['filterModel' => $this->filterModel]); $this->configs = array_replace_recursive($this->configs, ['filterModel' => $this->pjax]); if ('' != $this->id) { $this->configs = array_replace_recursive($this->configs, ['id' => $this->id]); } GridViewAsset::register($this->getView()); }
/** * Initializes the widget. */ public function init() { parent::init(); GridViewAsset::register($this->getView()); }