From ef70b59c130a60930322cf5f5161627280373a19 Mon Sep 17 00:00:00 2001 From: AGD Date: Thu, 14 Jun 2018 09:26:26 +0800 Subject: [PATCH] =?UTF-8?q?4.6=20=E9=9B=86=E4=B8=AD=E8=A7=86=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../welcome/view/_layout/default.blade.php | 32 ------------------- .../welcome/view/_layout/footer.blade.php | 0 .../welcome/view/_layout/header.blade.php | 29 ----------------- config/template.php | 4 +-- .../views}/_layout/default.blade.php | 0 .../views}/_layout/footer.blade.php | 0 .../views}/_layout/header.blade.php | 0 resources/views/user/auth/create.blade.php | 11 +++++++ .../views/welcome}/index/about.blade.php | 0 .../views/welcome}/index/help.blade.php | 0 .../views/welcome}/index/home.blade.php | 0 11 files changed, 13 insertions(+), 63 deletions(-) delete mode 100644 application/welcome/view/_layout/default.blade.php delete mode 100644 application/welcome/view/_layout/footer.blade.php delete mode 100644 application/welcome/view/_layout/header.blade.php rename {application/user/view => resources/views}/_layout/default.blade.php (100%) rename {application/user/view => resources/views}/_layout/footer.blade.php (100%) rename {application/user/view => resources/views}/_layout/header.blade.php (100%) create mode 100644 resources/views/user/auth/create.blade.php rename {application/welcome/view => resources/views/welcome}/index/about.blade.php (100%) rename {application/welcome/view => resources/views/welcome}/index/help.blade.php (100%) rename {application/welcome/view => resources/views/welcome}/index/home.blade.php (100%) diff --git a/application/welcome/view/_layout/default.blade.php b/application/welcome/view/_layout/default.blade.php deleted file mode 100644 index 1871d55..0000000 --- a/application/welcome/view/_layout/default.blade.php +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - @yield('title') -- ThinkPHP 入门教程 - - - - - - @include('_layout.header') -
- @yield('content') -
- @include('_layout.footer') - - - - - - - \ No newline at end of file diff --git a/application/welcome/view/_layout/footer.blade.php b/application/welcome/view/_layout/footer.blade.php deleted file mode 100644 index e69de29..0000000 diff --git a/application/welcome/view/_layout/header.blade.php b/application/welcome/view/_layout/header.blade.php deleted file mode 100644 index 580e6c3..0000000 --- a/application/welcome/view/_layout/header.blade.php +++ /dev/null @@ -1,29 +0,0 @@ -
-
- -
-
\ No newline at end of file diff --git a/config/template.php b/config/template.php index c2504ef..306d46d 100644 --- a/config/template.php +++ b/config/template.php @@ -17,9 +17,9 @@ // 模板引擎类型 'type' => 'Blade', // 视图基础目录(集中式) - 'view_base' => '', + 'view_base' => Env::get('ROOT_PATH') . 'resources' . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR, // 模板起始路径 - 'view_path' => '', + 'view_path' => Env::get('ROOT_PATH') . 'resources' . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR, // 模板文件名分隔符 'view_depr' => DIRECTORY_SEPARATOR, // 模板文件后缀 diff --git a/application/user/view/_layout/default.blade.php b/resources/views/_layout/default.blade.php similarity index 100% rename from application/user/view/_layout/default.blade.php rename to resources/views/_layout/default.blade.php diff --git a/application/user/view/_layout/footer.blade.php b/resources/views/_layout/footer.blade.php similarity index 100% rename from application/user/view/_layout/footer.blade.php rename to resources/views/_layout/footer.blade.php diff --git a/application/user/view/_layout/header.blade.php b/resources/views/_layout/header.blade.php similarity index 100% rename from application/user/view/_layout/header.blade.php rename to resources/views/_layout/header.blade.php diff --git a/resources/views/user/auth/create.blade.php b/resources/views/user/auth/create.blade.php new file mode 100644 index 0000000..88db177 --- /dev/null +++ b/resources/views/user/auth/create.blade.php @@ -0,0 +1,11 @@ + +@extends('_layout.default') +@section('title', '注册') +@section('content') +
+
+

注册

+
+
+@stop + \ No newline at end of file diff --git a/application/welcome/view/index/about.blade.php b/resources/views/welcome/index/about.blade.php similarity index 100% rename from application/welcome/view/index/about.blade.php rename to resources/views/welcome/index/about.blade.php diff --git a/application/welcome/view/index/help.blade.php b/resources/views/welcome/index/help.blade.php similarity index 100% rename from application/welcome/view/index/help.blade.php rename to resources/views/welcome/index/help.blade.php diff --git a/application/welcome/view/index/home.blade.php b/resources/views/welcome/index/home.blade.php similarity index 100% rename from application/welcome/view/index/home.blade.php rename to resources/views/welcome/index/home.blade.php