public function endPage($ajaxMode = false)
    {
        $this->trigger(PageEvent::END);

        $content = ob_get_clean();

        echo strtr($content, [
            self::PH_HEAD => $this->renderHeadHtml(),
            self::PH_BODY_BEGIN => $this->renderBodyBeginHtml(),
            self::PH_BODY_END => $this->renderBodyEndHtml($ajaxMode),
        ]);

        $this->clear();
    }
public function endPage($ajaxMode = false)
    {
        $this->trigger(PageEvent::END);

        $content = ob_get_clean();

        echo strtr($content, [
            self::PH_HEAD => $this->renderHeadHtml(),
            self::PH_BODY_BEGIN => $this->renderBodyBeginHtml(),
            self::PH_BODY_END => $this->renderBodyEndHtml($ajaxMode),
        ]);

        $this->clear();
    }
public function endPage ( $ ajaxMode = false ) { $ this -> trigger ( PageEvent :: END ) ; $ content = ob_get_clean ( ) ; echo strtr ( $ content , [ self :: PH_HEAD => $ this -> renderHeadHtml ( ) , self :: PH_BODY_BEGIN => $ this -> renderBodyBeginHtml ( ) , self :: PH_BODY_END => $ this -> renderBodyEndHtml ( $ ajaxMode ) , ] ) ; $ this -> clear ( ) ; }
Marks the ending of an HTML page.
@param bool $ajaxMode 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.
Marks the ending of an HTML page .