first commit
This commit is contained in:
35
application/index/config.php
Normal file
35
application/index/config.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
// +------------------------------------------------+
|
||||
// |http://www.cjango.com |
|
||||
// +------------------------------------------------+
|
||||
// | 修复BUG不是一朝一夕的事情,等我喝醉了再说吧! |
|
||||
// +------------------------------------------------+
|
||||
// | Author: 小陈叔叔 <Jason.Chen> |
|
||||
// +------------------------------------------------+
|
||||
|
||||
return [
|
||||
// +----------------------------------------------------------------------
|
||||
// | 日志设置
|
||||
// +----------------------------------------------------------------------
|
||||
'log' => [
|
||||
'type' => 'file',
|
||||
'path' => LOG_PATH . 'index/',
|
||||
'time_format' => ' c ',
|
||||
'file_size' => 2097152,
|
||||
],
|
||||
// +----------------------------------------------------------------------
|
||||
// | 模板设置
|
||||
// +----------------------------------------------------------------------
|
||||
'template' => [
|
||||
'tpl_cache' => true,
|
||||
'strip_space' => false,
|
||||
'taglib_pre_load' => '',
|
||||
'cache_path' => TEMP_PATH . 'index/',
|
||||
],
|
||||
'view_replace_str' => [
|
||||
'__STATIC__' => '/static/index',
|
||||
'__JS__' => '/static/index/js',
|
||||
'__CSS__' => '/static/index/css',
|
||||
'__IMG__' => '/static/index/images',
|
||||
],
|
||||
];
|
||||
20
application/index/controller/Index.php
Normal file
20
application/index/controller/Index.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
// +------------------------------------------------+
|
||||
// |http://www.cjango.com |
|
||||
// +------------------------------------------------+
|
||||
// | 修复BUG不是一朝一夕的事情,等我喝醉了再说吧! |
|
||||
// +------------------------------------------------+
|
||||
// | Author: 小陈叔叔 <Jason.Chen> |
|
||||
// +------------------------------------------------+
|
||||
namespace app\index\controller;
|
||||
|
||||
use tools\Initialize;
|
||||
|
||||
class Index extends Initialize
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
dump(strtoupper(md5(uniqid())));
|
||||
return $this->fetch();
|
||||
}
|
||||
}
|
||||
11
application/index/view/index/index.html
Normal file
11
application/index/view/index/index.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>{$Think.config.web_site_title}</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>{$Think.config.web_site_title}</h1>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user