endPage() public method

Marks the ending of an HTML page.
public endPage ( boolean $ajaxMode = false )
$ajaxMode boolean whether the view is rendering in AJAX mode. If true, the JS scripts registered at [[POS_READY]] and [[POS_LOAD]] positions will be rendered at the end of the view like normal scripts.
Beispiel #1
0
 /**
  * Marks the ending of a page.
  * @param \yii\web\View $view the view to be registered with
  */
 public function endPage($view)
 {
     $view->endPage();
     $this->trigger(self::EVENT_END_PAGE);
 }
Beispiel #2
0
 public function endPage($ajaxMode = false)
 {
     parent::endPage($ajaxMode);
     $this->afterPage();
 }