當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Presenter::afterRender方法代碼示例

本文整理匯總了PHP中Nette\Application\UI\Presenter::afterRender方法的典型用法代碼示例。如果您正苦於以下問題:PHP Presenter::afterRender方法的具體用法?PHP Presenter::afterRender怎麽用?PHP Presenter::afterRender使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Nette\Application\UI\Presenter的用法示例。


在下文中一共展示了Presenter::afterRender方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: afterRender

 protected function afterRender()
 {
     parent::afterRender();
     if ($this->isAjax()) {
         // Redraw default snippets if enabled
         $this->redrawDefault();
     } else {
         $this->template->flashSession = $this->exportFlashSession();
     }
 }
開發者ID:nittro,項目名稱:nette-bridges,代碼行數:10,代碼來源:Presenter.php

示例2: afterRender

 protected function afterRender()
 {
     parent::afterRender();
     $this->template->title = $this->title;
     $this->template->tab = $this->tab;
     if ($this->isAjax()) {
         if (!$this->isSignalled() && !$this->isControlInvalid()) {
             $this->redrawControl('content');
             $this->payload->title = $this->title;
             $this->payload->tab = $this->tab;
         }
     }
 }
開發者ID:nittro,項目名稱:nittro-web,代碼行數:13,代碼來源:BasePresenter.php

示例3: afterRender

 protected function afterRender()
 {
     parent::afterRender();
     if ($this->getModal()->isRequested() and !$this->isControlInvalid()) {
         $this->redrawControl("modalTitle");
         $this->redrawControl("modalContent");
     } else {
         if ($this->isAjax() and !$this->isControlInvalid() and $this->layout !== false) {
             $this->redrawControl("title");
             $this->redrawControl("content");
             $this->redrawControl("styles");
             $this->redrawControl("scripts");
         }
     }
 }
開發者ID:pipaslot,項目名稱:modules,代碼行數:15,代碼來源:AjaxPresenter.php

示例4: afterRender

 public function afterRender()
 {
     parent::afterRender();
     $this->template->active = $this->active;
 }
開發者ID:vladimirantos,項目名稱:Pallete,代碼行數:5,代碼來源:BasePresenter.php

示例5: afterRender

 protected function afterRender()
 {
     parent::afterRender();
     if ($this->getParameter('_redirectByAjax', FALSE)) {
         $this->payload->url = $this->link('this');
     }
 }
開發者ID:svobodni,項目名稱:web,代碼行數:7,代碼來源:Presenter.php

示例6: afterRender

 protected function afterRender()
 {
     parent::afterRender();
     $this->terminate();
 }
開發者ID:webchemistry,項目名稱:testing-helpers,代碼行數:5,代碼來源:FakePresenter.php

示例7: afterRender

 protected function afterRender()
 {
     parent::afterRender();
     $this->template->siteTitle = $this->context->parameters['siteTitle'];
 }
開發者ID:janmarek,項目名稱:nette-skeleton,代碼行數:5,代碼來源:BasePresenter.php


注:本文中的Nette\Application\UI\Presenter::afterRender方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。