예제 #1
0
 public function init()
 {
     parent::init();
     if ($this->customStyle) {
         ToastrCustomAsset::register($this->getView());
     } else {
         ToastrAsset::register($this->getView());
     }
 }
예제 #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());
     }
 }