Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added the view file to the "Views rendering" panel headings (see http…

  • Loading branch information...
commit 6dfc1c23dbc7708a3ca4ffc5e0c4d9a2d1fbdcab 1 parent 292c56b
@ElvenPath authored
Showing with 9 additions and 7 deletions.
  1. +1 −0  README.markdown
  2. +8 −7 views/panels/views.php
View
1  README.markdown
@@ -80,5 +80,6 @@ See: [issues](https://github.com/malyshev/yii-debug-toolbar/issues)
<img src="https://dl.dropboxusercontent.com/u/6067542/yii-debug-toolbar/screenshot_2.png" alt="Screenshot2" />
<img src="https://dl.dropboxusercontent.com/u/6067542/yii-debug-toolbar/screenshot_3.png" alt="Screenshot3" />
<img src="https://dl.dropboxusercontent.com/sh/09k0c42xasghu6c/Zq0WrQpxw5/screenshot_4.png" alt="Screenshot4" />
+<img src="https://www.dropbox.com/s/8l0ne92rgsfb3mj/screenshot_5.png" alt="Screenshot5" />
View
15 views/panels/views.php
@@ -1,7 +1,7 @@
<?php
/**
* application file.
- *
+ *
* Description of application file
*
* @author Sergey Malyshev <malyshev.php@gmail.com>
@@ -21,7 +21,8 @@
<div data-ydtb-accordion-group="collapsed">
<div data-ydtb-accordion-heading="">
<i data-ydtb-icon="s"></i>
- <span><?php echo YiiDebug::t('Context')?> <?php echo CHtml::encode(get_class($item['context']))?></span>
+ <span><?php echo YiiDebug::t('Context')?> <?php echo CHtml::encode(get_class($item['context']))?>:</span>
+ <span><?php echo $this->getFilePath($item['sourceFile']) ?></span>
<?php // echo $this->getFileAlias($item['sourceFile']) ?>
<i data-ydtb-icon="q"></i>
<i data-ydtb-icon="t"></i>
@@ -42,7 +43,7 @@
<th>Defined in file</th>
<td><?php echo $this->getFilePath($item['reflection']->getFileName()) ?></td>
</tr>
-
+
<tr>
<th>Context properties</th>
<td>
@@ -60,7 +61,7 @@
<?php endif; ?>
</td>
</tr>
-
+
<?php if(null!==$item['action']): ?>
<tr>
<th>Route</th>
@@ -70,7 +71,7 @@
<th>Action</th>
<td><?php echo get_class($item['action']) , '&nbsp;(' , $item['action']->getId() , ')' ?></td>
</tr>
-
+
<tr>
<th>Action params</th>
<td>
@@ -96,7 +97,7 @@
<th>View file</th>
<td><?php echo $this->getFilePath($item['sourceFile']) ?></td>
</tr>
-
+
<?php if(!(1===count($item['data']) && isset($item['data']['content']))): ?>
<tr>
<th>View data</th>
@@ -117,7 +118,7 @@
</tr>
<?php endif; ?>
</tbody>
- </table>
+ </table>
</div>
</div>
<?php endforeach; ?>
Please sign in to comment.
Something went wrong with that request. Please try again.