14 changed files with 150 additions and 118 deletions
			
			
		| @ -1,24 +0,0 @@ | |||||||
| <?php |  | ||||||
| use yii\helpers\Html; |  | ||||||
| 
 |  | ||||||
| if (empty($values)): ?> |  | ||||||
| <h3><?php echo $caption; ?></h3>
 |  | ||||||
| <p>Empty.</p> |  | ||||||
| <?php else:	?> |  | ||||||
| <h3><?php echo $caption; ?></h3>
 |  | ||||||
| <table class="table table-condensed table-bordered table-striped table-hover" style="table-layout: fixed;"> |  | ||||||
| 	<thead> |  | ||||||
| 		<tr> |  | ||||||
| 			<th style="width: 200px;">Name</th> |  | ||||||
| 			<th>Value</th> |  | ||||||
| 		</tr> |  | ||||||
| 	</thead> |  | ||||||
| 	<?php foreach($values as $name => $value): ?> |  | ||||||
| 		<tr> |  | ||||||
| 			<th style="width: 200px;"><?php echo Html::encode($name); ?></th>
 |  | ||||||
| 			<td style="overflow:auto"><?php echo Html::encode($value); ?></td>
 |  | ||||||
| 		</tr> |  | ||||||
| 	<?php endforeach; ?> |  | ||||||
| </tbody> |  | ||||||
| </table> |  | ||||||
| <?php endif; ?> |  | ||||||
| @ -1,14 +1,38 @@ | |||||||
| <?php | <?php | ||||||
| use yii\helpers\Html; | use yii\helpers\Html; | ||||||
|  | 
 | ||||||
|  | /** | ||||||
|  |  * @var yii\debug\panels\ConfigPanel $panel | ||||||
|  |  */ | ||||||
|  | $extensions = $panel->getExtensions(); | ||||||
| ?> | ?> | ||||||
| <h1>Configuration</h1> | <h1>Configuration</h1> | ||||||
| <?php | <?php | ||||||
| echo $this->context->renderPartial('panels/config/_data_table',[ 'caption' => 'Application Configuration', 'values' => $app]); | echo $this->render('panels/config/table', [ | ||||||
|  | 	'caption' => 'Application Configuration', | ||||||
|  | 	'values' => [ | ||||||
|  | 		'Yii Version' => $panel->data['application']['yii'], | ||||||
|  | 		'Application Name' => $panel->data['application']['name'], | ||||||
|  | 		'Environment' => $panel->data['application']['env'], | ||||||
|  | 		'Debug Mode' => $panel->data['application']['debug'] ? 'Yes' : 'No', | ||||||
|  | 	], | ||||||
|  | ]); | ||||||
| 
 | 
 | ||||||
| if (!empty($extensions)) { | if (!empty($extensions)) { | ||||||
| 	echo $this->context->renderPartial('panels/config/_data_table',[ 'caption' => 'Installed Extensions', 'values' => $extensions]);	 | 	echo $this->render('panels/config/table', [ | ||||||
|  | 		'caption' => 'Installed Extensions', | ||||||
|  | 		'values' => $extensions, | ||||||
|  | 	]); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| echo $this->context->renderPartial('panels/config/_data_table',[ 'caption' => 'PHP Configuration', 'values' => $php]); | echo $this->render('panels/config/table', [ | ||||||
|  | 	'caption' => 'PHP Configuration', | ||||||
|  | 	'values' => [ | ||||||
|  | 		'PHP Version' => $panel->data['php']['version'], | ||||||
|  | 		'Xdebug' => $panel->data['php']['xdebug'] ? 'Enabled' : 'Disabled', | ||||||
|  | 		'APC' => $panel->data['php']['apc'] ? 'Enabled' : 'Disabled', | ||||||
|  | 		'Memcache' => $panel->data['php']['memcache'] ? 'Enabled' : 'Disabled', | ||||||
|  | 	], | ||||||
|  | ]); | ||||||
| ?> | ?> | ||||||
| <div><?php echo Html::a('Show phpinfo »', ['phpinfo'], ['class' => 'btn btn-primary']); ?></div>
 | <div><?= Html::a('Show phpinfo() »', ['phpinfo'], ['class' => 'btn btn-primary']) ?></div>
 | ||||||
|  | |||||||
| @ -1,9 +1,17 @@ | |||||||
|  | <?php | ||||||
|  | 
 | ||||||
|  | use yii\helpers\Html; | ||||||
|  | 
 | ||||||
|  | /** | ||||||
|  |  * @var yii\debug\panels\ConfigPanel $panel | ||||||
|  |  */ | ||||||
|  | ?> | ||||||
| <div class="yii-debug-toolbar-block"> | <div class="yii-debug-toolbar-block"> | ||||||
| 	<a href="<?php echo $panel->getUrl(); ?>">
 | 	<a href="<?= $panel->getUrl() ?>">
 | ||||||
| 		<img width="29" height="30" alt="" src="<?php echo $panel->getYiiLogo();?>">
 | 		<img width="29" height="30" alt="" src="<?= $panel->getYiiLogo() ?>">
 | ||||||
| 		<span><?php echo $data['application']['yii'];?></span>
 | 		<span><?= $panel->data['application']['yii'] ?></span>
 | ||||||
| 	</a> | 	</a> | ||||||
| </div> | </div> | ||||||
| <div class="yii-debug-toolbar-block"> | <div class="yii-debug-toolbar-block"> | ||||||
| 	<a href="<?php echo $this->context->createUrl('phpinfo');?>" title="Show phpinfo()">PHP <?php echo $data['php']['version'];?></a>
 | 	<?= Html::a('PHP ' . $panel->data['php']['version'], ['phpinfo'], ['title' => 'Show phpinfo()']) ?> | ||||||
| </div> | </div> | ||||||
| @ -0,0 +1,35 @@ | |||||||
|  | <?php | ||||||
|  | use yii\helpers\Html; | ||||||
|  | 
 | ||||||
|  | /** | ||||||
|  |  * @var string $caption | ||||||
|  |  * @var array $values | ||||||
|  |  */ | ||||||
|  | ?> | ||||||
|  | 
 | ||||||
|  | <h3><?= $caption ?></h3>
 | ||||||
|  | 
 | ||||||
|  | <?php if (empty($values)): ?> | ||||||
|  | 
 | ||||||
|  | 	<p>Empty.</p> | ||||||
|  | 
 | ||||||
|  | <?php else:	?> | ||||||
|  | 
 | ||||||
|  | 	<table class="table table-condensed table-bordered table-striped table-hover" style="table-layout: fixed;"> | ||||||
|  | 		<thead> | ||||||
|  | 			<tr> | ||||||
|  | 				<th style="width: 200px;">Name</th> | ||||||
|  | 				<th>Value</th> | ||||||
|  | 			</tr> | ||||||
|  | 		</thead> | ||||||
|  | 		<tbody> | ||||||
|  | 		<?php foreach($values as $name => $value): ?> | ||||||
|  | 			<tr> | ||||||
|  | 				<th style="width: 200px;"><?= Html::encode($name) ?></th>
 | ||||||
|  | 				<td style="overflow:auto"><?= Html::encode($value) ?></td>
 | ||||||
|  | 			</tr> | ||||||
|  | 		<?php endforeach; ?> | ||||||
|  | 		</tbody> | ||||||
|  | 	</table> | ||||||
|  | 
 | ||||||
|  | <?php endif; ?> | ||||||
| @ -1,7 +1,7 @@ | |||||||
| <?php if ($queryCount): ?> | <?php if ($queryCount): ?> | ||||||
| <div class="yii-debug-toolbar-block"> | <div class="yii-debug-toolbar-block"> | ||||||
| 	<a href="<?php echo $panel->getUrl();?>" title="Executed <?php echo $queryCount; ?> database queries which took <?php echo $queryTime; ?>.">
 | 	<a href="<?= $panel->getUrl() ?>" title="Executed <?php echo $queryCount; ?> database queries which took <?= $queryTime ?>.">
 | ||||||
| 		DB <span class="label"><?php echo $queryCount; ?></span> <span class="label"><?php echo $queryTime; ?></span>
 | 		DB <span class="label"><?= $queryCount ?></span> <span class="label"><?= $queryTime ?></span>
 | ||||||
| 	</a> | 	</a> | ||||||
| </div> | </div> | ||||||
| <?php endif; ?> | <?php endif; ?> | ||||||
| @ -1,6 +1,6 @@ | |||||||
| <div class="yii-debug-toolbar-block"> | <div class="yii-debug-toolbar-block"> | ||||||
| 	<a href="<?php echo $panel->getUrl(); ?>" title="Total request processing time was <?php echo $time; ?>">Time <span class="label"><?php echo $time; ?></span></a>
 | 	<a href="<?= $panel->getUrl() ?>" title="Total request processing time was <?= $time ?>">Time <span class="label"><?= $time ?></span></a>
 | ||||||
| </div> | </div> | ||||||
| <div class="yii-debug-toolbar-block"> | <div class="yii-debug-toolbar-block"> | ||||||
| 	<a href="<?php echo $panel->getUrl(); ?>" title="Peak memory consumption">Memory <span class="label"><?php echo $memory; ?></span></a>
 | 	<a href="<?= $panel->getUrl() ?>" title="Peak memory consumption">Memory <span class="label"><?= $memory ?></span></a>
 | ||||||
| </div> | </div> | ||||||
| @ -1,24 +0,0 @@ | |||||||
| <?php |  | ||||||
| use yii\helpers\Html; |  | ||||||
| 
 |  | ||||||
| if (empty($values)): ?> |  | ||||||
| <h3><?php echo $caption; ?></h3>
 |  | ||||||
| <p>Empty.</p> |  | ||||||
| <?php else:	?> |  | ||||||
| <h3><?php echo $caption; ?></h3>
 |  | ||||||
| <table class="table table-condensed table-bordered table-striped table-hover" style="table-layout: fixed;"> |  | ||||||
| 	<thead> |  | ||||||
| 		<tr> |  | ||||||
| 			<th style="width: 200px;">Name</th> |  | ||||||
| 			<th>Value</th> |  | ||||||
| 		</tr> |  | ||||||
| 	</thead> |  | ||||||
| 	<?php foreach($values as $name => $value): ?> |  | ||||||
| 		<tr> |  | ||||||
| 			<th style="width: 200px;"><?php echo Html::encode($name); ?></th>
 |  | ||||||
| 			<td><?php echo htmlspecialchars(var_export($value, true), ENT_QUOTES|ENT_SUBSTITUTE, \Yii::$app->charset, TRUE); ?></td>
 |  | ||||||
| 		</tr> |  | ||||||
| 	<?php endforeach; ?> |  | ||||||
| </tbody> |  | ||||||
| </table> |  | ||||||
| <?php endif; ?> |  | ||||||
| @ -0,0 +1,34 @@ | |||||||
|  | <?php | ||||||
|  | use yii\helpers\Html; | ||||||
|  | 
 | ||||||
|  | /** | ||||||
|  |  * @var string $caption | ||||||
|  |  * @var array $values | ||||||
|  |  */ | ||||||
|  | ?> | ||||||
|  | <h3><?= $caption ?></h3>
 | ||||||
|  | 
 | ||||||
|  | <?php if (empty($values)): ?> | ||||||
|  | 
 | ||||||
|  | 	<p>Empty.</p> | ||||||
|  | 
 | ||||||
|  | <?php else:	?> | ||||||
|  | 
 | ||||||
|  | 	<table class="table table-condensed table-bordered table-striped table-hover" style="table-layout: fixed;"> | ||||||
|  | 		<thead> | ||||||
|  | 			<tr> | ||||||
|  | 				<th style="width: 200px;">Name</th> | ||||||
|  | 				<th>Value</th> | ||||||
|  | 			</tr> | ||||||
|  | 		</thead> | ||||||
|  | 		<tbody> | ||||||
|  | 		<?php foreach($values as $name => $value): ?> | ||||||
|  | 			<tr> | ||||||
|  | 				<th style="width: 200px;"><?= Html::encode($name) ?></th>
 | ||||||
|  | 				<td><?= htmlspecialchars(var_export($value, true), ENT_QUOTES|ENT_SUBSTITUTE, \Yii::$app->charset, true) ?></td>
 | ||||||
|  | 			</tr> | ||||||
|  | 		<?php endforeach; ?> | ||||||
|  | 		</tbody> | ||||||
|  | 	</table> | ||||||
|  | 
 | ||||||
|  | <?php endif; ?> | ||||||
					Loading…
					
					
				
		Reference in new issue