/** * @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(); }
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(); }