yiisoft / yii2-debug

Debug Extension for Yii 2
http://www.yiiframework.com
BSD 3-Clause "New" or "Revised" License
202 stars 150 forks source link

yii2-debug toolbar #471

Open rackycz opened 2 years ago

rackycz commented 2 years ago

It would be nice if the debug toolbar also displayed info about current theme so developers know where to search for view files. It should be enough to update file yii2-debug\src\views\default\panels\router\summary.php with this snippet:

<div class="yii-debug-toolbar__block">
  <a href="<?= $panel->getUrl() ?>" title="Action: <?= Html::encode($panel->data['action']) ?>">
    Theme 
    <span class="yii-debug-toolbar__label">
      <?php echo str_ireplace(yii\helpers\Url::base(), '', Yii::$app->getView()->theme->baseUrl ?? "No theme"); ?>
    </span>
  </a>
</div>

PS: Also a list of all rendered views would be nice. So developer knows which views were involved and where to find them..

samdark commented 2 years ago

Good ideas.