Ejemplo n.º 1
0
 public function init()
 {
     parent::init();
     if ($this->customStyle) {
         ToastrCustomAsset::register($this->getView());
     } else {
         ToastrAsset::register($this->getView());
     }
 }
Ejemplo n.º 2
0
 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());
     }
 }