本文整理汇总了PHP中Tpl::includeSystem方法的典型用法代码示例。如果您正苦于以下问题:PHP Tpl::includeSystem方法的具体用法?PHP Tpl::includeSystem怎么用?PHP Tpl::includeSystem使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tpl
的用法示例。
在下文中一共展示了Tpl::includeSystem方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printError
/**
* Prints an error dialogue
* @param string $msg Message that'll be displayed
* @param integer $line Line number of the original error
* @param string $file File where the error originated
* @param string $type Type of error we should display (May be block (small) or full (full screen))
* @return void
*/
static function printError($msg, $line, $file, $type = 'block')
{
switch ($type) {
case 'full':
echo Tpl::includeSystem();
echo "<title>Fatal error!</title>";
echo "<div class=\"sonicwulf_overlay\"></div>";
echo "<div class=\"sonicwulf_fatal animated fadeInDown\">";
echo "<div class=\"info\"><h1>FATAL EHRROHR!!!!11</h1>";
echo "<b>Dump:</b><br><pre>Fatal error near line {$line} in file {$file}<br><br>";
echo "SonicWulf said: " . $msg . "";
echo "<br><br>PHP " . PHPV . " (" . OS . ")<br /><br>";
echo "Host: " . HOST . "<br>Requested from: " . REF;
echo "</pre>Powered by <b>" . SWVER . "</b></div>";
exit(1);
break;
case 'block':
echo "<div class=\"sonicwulf_msg\"><b>Error!</b> {$msg} on line {$line} in file {$file}</div>";
break;
}
}