Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

yii2-debug toolbar #471

Open
rackycz opened this issue Nov 12, 2021 · 1 comment
Open

yii2-debug toolbar #471

rackycz opened this issue Nov 12, 2021 · 1 comment
Labels
type:enhancement Enhancement

Comments

@rackycz
Copy link

rackycz commented Nov 12, 2021

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
Copy link
Member

samdark commented Nov 12, 2021

Good ideas.

@samdark samdark transferred this issue from yiisoft/yii2 Jan 23, 2022
@samdark samdark added the type:enhancement Enhancement label Jan 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants