protected function afterRender() { parent::afterRender(); if ($this->isAjax()) { $this->payload->title = $this->title; } $this->template->title = $this->title; }
protected function startup() { $this->setDefaultSnippets(['content', 'title']); parent::startup(); }