run() public méthode

public run ( )
Exemple #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();
 }
Exemple #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();
 }