Skip to content

yii2-debug toolbar #471

@rackycz

Description

@rackycz

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions