5.0.0 - 严重 - 未处理
难道只有我遇到这样的问题,还是我的操作使用方式不对?如果有人碰到这个问题,有个临时解决方案:
tp视图类输出页面之前,过滤一下bom。
=======分割线==============
tp5同样的问题



=======分割线==============
使用模板继承block会产生65279隐形字符
每个block都会出现一个



ba
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{$title}</title>
<meta name="description" content="{$description}" />
<meta name="keywords" content="{$keywords}" />
<!-- Bootstrap core CSS -->
<link href="/suc/css/bootstrap.css" rel="stylesheet">
<!-- Add custom CSS here -->
<link href="/suc/css/slidefolio.css" rel="stylesheet">
<!-- Font Awesome -->
<link href="/suc/font-awesome/css/font-awesome.min.css" rel="stylesheet">
<block name="head_css"></block>
<block name="head_js"></block>
</head>
<body>
<block name="header"></block>
<block name="main"></block>
<block name="footer"></block>
<block name="foot_js"></block>
</body>
</html>Index/index.html<extend name="Base:layout" />
<block name="head_css"></block>
<block name="main">
内容
</block>
<block name="foot_js"></block> 