run() public method

public run ( )
Example #1
0
 /**
  * @inheritdoc
  */
 public function run()
 {
     if ($this->requiresPjax()) {
         echo Notify::widget($this->notifyOptions);
     }
     $id = $this->options['id'];
     if ($this->modal) {
         $this->getView()->registerJs("Admin.Modal.pjax('#{$id}');");
     }
     parent::run();
 }
Example #2
0
 public function run()
 {
     if ($this->requiresPjax()) {
         Alert::widget();
         /// We do render breadcrumbs only for the main outer PJAX block
         if ($this->id === Yii::$app->params['pjax']['id']) {
             $this->addBreadcrumbs();
         }
     }
     parent::run();
 }