THINKPHP_TEMPLATE
license: mit
This a snippet for ThinkPHP Basic Template
<!--THINKPHP_TEMPLATE-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
<title><?php echo ACTION_NAME; ?> - <?php echo CONTROLLER_NAME; ?></title>
<link href="/lib/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet"/>
<link href="/lib/dotku/dist/css/general-cn.css" rel="stylesheet"/>
<script src="/lib/angular/angular.js"></script>
<script src="/lib/jquery/dist/jquery.min.js"></script>
<script src="/lib/bootstrap/dist/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<h1><?php echo ACTION_NAME; ?></h1>
<p>content</p>
</div>
</body>
</html>
//数据库配置信息
'DB_TYPE' => 'mysql', // 数据库类型
'DB_HOST' => 'localhost', // 服务器地址
'DB_NAME' => 'thinkphp', // 数据库名
'DB_USER' => 'root', // 用户名
'DB_PWD' => '123456', // 密码
'DB_PORT' => 3306, // 端口
'DB_PREFIX' => 'think_', // 数据库表前缀
'DB_CHARSET'=> 'utf8', // 字符集
'DB_DEBUG' => TRUE, // 数据库调试模式 开启后可以记录SQL日志 3.2.3新增
<?php
define('APP_PATH', 'app/');
define('RUNTIME_PATH', 'runtime/');
define('COMMON_PATH', 'common/');
define('APP_DEBUG', true);
require_once '/var/www/vendor/topthink/thinkphp/ThinkPHP/ThinkPHP.php';