yii2-debug icon indicating copy to clipboard operation
yii2-debug copied to clipboard

yii2-debug toolbar

Open rackycz opened this issue 3 years ago • 1 comments

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..

rackycz avatar Nov 12 '21 11:11 rackycz

Good ideas.

samdark avatar Nov 12 '21 18:11 samdark