public function init() { $this->header = Html::tag('h4', $this->title, ['class' => 'modal-title']); $this->actionUrl = [$this->scenario, 'id' => $this->model->id]; $this->toggleButton = array_merge(['tag' => 'a', 'label' => FontIcon::i($this->icon) . $this->title, 'class' => 'clickable'], is_array($this->toggleButton) ? $this->toggleButton : []); parent::init(); }