主頁引入 公共的 html文件一直無法解析
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<link rel="stylesheet" href="/bootstrap/css/bootstrap-4.2.1.css">
<link rel="stylesheet" >
<link rel="stylesheet" href="/admin/login/css/slidercaptcha.css">
<link rel="stylesheet" href="/admin/login/css/login_ercode.css">
<link rel="stylesheet" href="/admin/login/css/slidercaptcha.css">
</head>
<body>
{include file="/common/js/common.html" /}
<div class="main">
<div class="main_bg" style="background: url(/admin/login/images/login-bg.jpg) #ebfff5 no-repeat">
<div class="loginBox">
<div class="signContent">
<div class="signContainer">
頁面引入公共的寫法
頁面顯示的內(nèi)容
webman默認(rèn)是原生php模板。如果你要用tp模板需要自己配置下
http://www.wtbis.cn/doc/webman/view.html
我配置了 tp模版 提示的是報(bào)錯(cuò):
Exception: template not exists:E:\webman\webman\app/admin/view/admin\header.html in E:\webman\webman\vendor\topthink\think-template\src\Template.php:1255
但是我已經(jīng)在config.view 配置了:
return [
'handler' => ThinkPHP::class,
'options' => [
'view_suffix' => 'html',
'tpl_begin' => '{',
'tpl_end' => '}'
]
];