add template for 403
This commit is contained in:
parent
066d468fa4
commit
88f1ca4f23
@ -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;
|
||||
}
|
||||
|
9
resources/views/errors/403.tpl
Normal file
9
resources/views/errors/403.tpl
Normal file
@ -0,0 +1,9 @@
|
||||
@extends('errors.general')
|
||||
|
||||
@section('title', '403 Forbidden')
|
||||
|
||||
@section('content')
|
||||
<h1>403 Forbidden</h1>
|
||||
|
||||
<p>详细信息:{{ $message }}</p>
|
||||
@endsection
|
Loading…
Reference in New Issue
Block a user