Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
88358602
Commit
88358602
authored
Oct 28, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改播放事件
parent
9a5ddf19
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
SiteController.php
src/frontend/controllers/SiteController.php
+14
-10
error.php
src/frontend/views/site/error.php
+0
-2
No files found.
src/frontend/controllers/SiteController.php
View file @
88358602
...
@@ -72,9 +72,6 @@ class SiteController extends Controller
...
@@ -72,9 +72,6 @@ class SiteController extends Controller
public
function
actions
()
public
function
actions
()
{
{
return
[
return
[
'error'
=>
[
'class'
=>
'yii\web\ErrorAction'
,
],
'captcha'
=>
[
'captcha'
=>
[
'class'
=>
'yii\captcha\CaptchaAction'
,
'class'
=>
'yii\captcha\CaptchaAction'
,
'fixedVerifyCode'
=>
YII_ENV_DEV
?
'testme'
:
NULL
,
'fixedVerifyCode'
=>
YII_ENV_DEV
?
'testme'
:
NULL
,
...
@@ -88,13 +85,20 @@ class SiteController extends Controller
...
@@ -88,13 +85,20 @@ class SiteController extends Controller
}
}
// public function actionError()
/**
// {
* @return string
// $exception = Yii::$app->errorHandler->exception;
*/
// if ($exception !== null) {
public
function
actionError
()
// return $this->render('error', ['exception' => $exception]);
{
// }
$this
->
layout
=
FALSE
;
// }
$exception
=
Yii
::
$app
->
errorHandler
->
exception
;
$name
=
Yii
::
$app
->
errorHandler
->
getExceptionName
(
$exception
);
$message
=
$exception
->
getMessage
();
if
(
$exception
!==
null
)
{
return
$this
->
render
(
'error'
,
[
'name'
=>
$name
,
'message'
=>
$message
]);
}
}
/**
/**
* Logs in a user.
* Logs in a user.
...
...
src/frontend/views/site/error.php
View file @
88358602
...
@@ -7,12 +7,10 @@
...
@@ -7,12 +7,10 @@
use
yii\helpers\Html
;
use
yii\helpers\Html
;
$this
->
layout
=
FALSE
;
$this
->
title
=
$name
;
$this
->
title
=
$name
;
?>
?>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"site-error"
>
<div
class=
"site-error"
>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<h1>
<?=
Html
::
encode
(
$this
->
title
)
?>
</h1>
<div
class=
"alert alert-danger"
>
<div
class=
"alert alert-danger"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment