From 88f1ca4f23bacfd4472d6673798d1d711d295166 Mon Sep 17 00:00:00 2001 From: printempw Date: Tue, 9 Aug 2016 21:55:49 +0800 Subject: [PATCH] add template for 403 --- app/Services/Http.php | 2 +- resources/views/errors/403.tpl | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 resources/views/errors/403.tpl diff --git a/app/Services/Http.php b/app/Services/Http.php index 5b11ad9a..937e4946 100644 --- a/app/Services/Http.php +++ b/app/Services/Http.php @@ -83,7 +83,7 @@ class Http if (file_exists($config['view_path']."/errors/".$code.".tpl")) { echo View::make('errors.'.$code)->with('code', $code)->with('message', $msg); } else { - echo View::make('errors.exception')->with('code', $code)->with('message', $msg); + echo View::make('errors.e')->with('code', $code)->with('message', $msg); } exit; } diff --git a/resources/views/errors/403.tpl b/resources/views/errors/403.tpl new file mode 100644 index 00000000..0bd8fba8 --- /dev/null +++ b/resources/views/errors/403.tpl @@ -0,0 +1,9 @@ +@extends('errors.general') + +@section('title', '403 Forbidden') + +@section('content') +

403 Forbidden

+ +

详细信息:{{ $message }}

+@endsection