add template for 403

This commit is contained in:
printempw 2016-08-09 21:55:49 +08:00
parent 066d468fa4
commit 88f1ca4f23
2 changed files with 10 additions and 1 deletions

View File

@ -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;
}

View File

@ -0,0 +1,9 @@
@extends('errors.general')
@section('title', '403 Forbidden')
@section('content')
<h1>403 Forbidden</h1>
<p>详细信息:{{ $message }}</p>
@endsection