Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
81188003
Commit
81188003
authored
Feb 07, 2013
by
Alexander Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed YII_DEBUG exception view
parent
e26a9ff4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
exception.php
framework/views/exception.php
+7
-7
No files found.
framework/views/exception.php
View file @
81188003
<?php
<?php
/**
/**
* @var \Exception $exception
* @var \Exception $exception
* @var \yii\base\ErrorHandler $
context
* @var \yii\base\ErrorHandler $
owner
*/
*/
$
context
=
$this
->
context
;
$
owner
=
$this
->
owner
;
?>
?>
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
...
@@ -163,26 +163,26 @@ $context = $this->context;
...
@@ -163,26 +163,26 @@ $context = $this->context;
<h1>
<?php
echo
get_class
(
$exception
)
?>
</h1>
<h1>
<?php
echo
get_class
(
$exception
)
?>
</h1>
<p
class=
"message"
>
<p
class=
"message"
>
<?php
echo
nl2br
(
$
context
->
htmlEncode
(
$exception
->
getMessage
()))
?>
<?php
echo
nl2br
(
$
owner
->
htmlEncode
(
$exception
->
getMessage
()))
?>
</p>
</p>
<div
class=
"source"
>
<div
class=
"source"
>
<p
class=
"file"
>
<p
class=
"file"
>
<?php
echo
$
context
->
htmlEncode
(
$exception
->
getFile
())
.
'('
.
$exception
->
getLine
()
.
')'
?>
<?php
echo
$
owner
->
htmlEncode
(
$exception
->
getFile
())
.
'('
.
$exception
->
getLine
()
.
')'
?>
</p>
</p>
<?php
if
(
YII_DEBUG
)
$
context
->
renderSourceCode
(
$exception
->
getFile
(),
$exception
->
getLine
(),
$context
->
maxSourceLines
)
?>
<?php
if
(
YII_DEBUG
)
$
owner
->
renderSourceCode
(
$exception
->
getFile
(),
$exception
->
getLine
(),
$owner
->
maxSourceLines
)
?>
</div>
</div>
<?php
if
(
YII_DEBUG
)
:?>
<?php
if
(
YII_DEBUG
)
:?>
<
div
class
="
traces
">
<
div
class
="
traces
">
<h2>Stack Trace</h2>
<h2>Stack Trace</h2>
<?php
$
context
->renderTrace
(
$exception->getTrace
())?>
<?php
$
owner
->renderTrace
(
$exception->getTrace
())?>
</div>
</div>
<?php endif?>
<?php endif?>
<div class="
version
">
<div class="
version
">
<?php echo date('Y-m-d H:i:s', time())?>
<?php echo date('Y-m-d H:i:s', time())?>
<?php echo YII_DEBUG ?
$
context
->versionInfo
: ''?>
<?php echo YII_DEBUG ?
$
owner
->versionInfo
: ''?>
</div>
</div>
</div>
</div>
...
...
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