|
@@ -44,28 +44,17 @@
|
|
|
|
|
|
<h2>Response Session Attributes</h2>
|
|
|
|
|
|
-<table>
|
|
|
- <tr>
|
|
|
- <th>Key</th>
|
|
|
- <th>Value</th>
|
|
|
- </tr>
|
|
|
-
|
|
|
- <?php if (count($sessionAttributes = $data->getSessionAttributes())):?>
|
|
|
- <?php foreach ($sessionAttributes->getRawValue() as $key => $value): ?>
|
|
|
- <tr>
|
|
|
- <th><?php echo $key ?></th>
|
|
|
- <td>
|
|
|
- <?php if (is_object($value)): ?>
|
|
|
- <em>Object</em>
|
|
|
- <?php elseif (is_resource($value)): ?>
|
|
|
- <em>Resource</em>
|
|
|
- <?php elseif (is_array($value)): ?>
|
|
|
- <em>Array</em>
|
|
|
- <?php else: ?>
|
|
|
- <?php echo $value ?>
|
|
|
- <?php endif; ?>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
+<?php if (count($sessionAttributes = $data->getSessionAttributes())):?>
|
|
|
+ <table>
|
|
|
+ <tr>
|
|
|
+ <th>Key</th>
|
|
|
+ <th>Value</th>
|
|
|
+ </tr>
|
|
|
+
|
|
|
+ <?php foreach ($sessionAttributes as $key => $value): ?>
|
|
|
+ <?php echo $view->render('WebProfilerBundle:Profiler:var_dump.php', array('key' => $key, 'value' => $value)) ?>
|
|
|
<?php endforeach; ?>
|
|
|
- <?php endif; ?>
|
|
|
-</table>
|
|
|
+ </table>
|
|
|
+<?php else: ?>
|
|
|
+ <em>No request session attributes</em>
|
|
|
+<?php endif; ?>
|