public function init() { parent::init(); if ($this->customStyle) { ToastrCustomAsset::register($this->getView()); } else { ToastrAsset::register($this->getView()); } }
public function init() { parent::init(); if (empty($this->toastType)) { $this->toastType = self::TYPE_INFO; } if (empty($this->title)) { $this->title = false; } if ($this->customStyle) { ToastrCustomAsset::register($this->getView()); } else { ToastrAsset::register($this->getView()); } }