Cml\Cml::cmlStop PHP Method

cmlStop() public static method

程序中并输出调试信息
public static cmlStop ( )
    public static function cmlStop()
    {
        //输出Debug模式的信息
        if (self::$debug) {
            header('Content-Type:text/html; charset=' . Config::get('default_charset'));
            Debug::stop();
        } else {
            $deBugLogData = dump('', 1);
            if (!empty($deBugLogData)) {
                Config::get('dump_use_php_console') ? dumpUsePHPConsole($deBugLogData) : Cml::requireFile(CML_CORE_PATH . DIRECTORY_SEPARATOR . 'ConsoleLog.php', ['deBugLogData' => $deBugLogData]);
            }
            CML_OB_START && ob_end_flush();
        }
        exit;
    }

Usage Example

Esempio n. 1
0
 /**
  * 模板显示 调用内置的模板引擎显示方法,
  *
  * @param string $templateFile 指定要调用的模板文件 默认为空 由系统自动定位模板文件
  * @param bool $inOtherApp 是否为载入其它应用的模板
  *
  * @return void
  */
 public function display($templateFile = '', $inOtherApp = false)
 {
     // 网页字符编码
     header('Content-Type:text/html; charset=' . Config::get('default_charset'));
     echo $this->fetch($templateFile, $inOtherApp);
     Cml::cmlStop();
 }
All Usage Examples Of Cml\Cml::cmlStop