コード例 #1
0
ファイル: WebPage.php プロジェクト: netconstructor/LampCMS
 /**
  * Performs the last step in assembling
  * the page
  *
  * @return string parsed tplMail template
  * with the {timer} replaced with
  * page generation time (if present)
  */
 public function getResult()
 {
     if (404 === $this->httpCode) {
         d('setting 404 error code');
         header("HTTP/1.0 404 Not Found");
     }
     d('cp');
     $this->addLoginBlock();
     d('cp');
     $this->addLastJs();
     d('cp');
     $this->addExtraCss();
     d('cp');
     $tpl = \tplMain::parse($this->aPageVars);
     d('cp');
     /**
      * @todo Translate string
      */
     $scriptTime = $this->Registry->Ini->SHOW_TIMER ? 'Page generated in ' . abs(microtime() - INIT_TIMESTAMP) . ' seconds' : '';
     return \str_replace('{timer}', $scriptTime, $tpl);
 }
コード例 #2
0
ファイル: WebPage.php プロジェクト: codigoirreverente/LampCMS
 /**
  * Performs the last step in assembling
  * the page
  *
  * @return string parsed tplMail template
  * with the {timer} replaced with
  * page generation time (if present)
  */
 public function getResult()
 {
     if (404 === $this->httpCode) {
         d('setting 404 error code');
         header("HTTP/1.0 404 Not Found");
     }
     //d('cp');
     $this->addLoginBlock();
     //d('cp');
     $this->addLastJs();
     //d('cp');
     $this->addExtraCss();
     //d('cp');
     $tpl = \tplMain::parse($this->aPageVars);
     //d('cp');
     return $tpl;
 }