Commit 4ec0a61a by Qiang Xue

Added logging of view files.

parent 1fc85114
...@@ -267,6 +267,7 @@ class View extends Component ...@@ -267,6 +267,7 @@ class View extends Component
$renderer = $this->renderers[$ext]; $renderer = $this->renderers[$ext];
$output = $renderer->render($this, $viewFile, $params); $output = $renderer->render($this, $viewFile, $params);
} else { } else {
Yii::info("Rendering view file: $viewFile", __METHOD__);
$output = $this->renderPhpFile($viewFile, $params); $output = $this->renderPhpFile($viewFile, $params);
} }
$this->afterRender($viewFile, $output); $this->afterRender($viewFile, $output);
......
...@@ -81,8 +81,8 @@ class Module extends \yii\base\Module ...@@ -81,8 +81,8 @@ class Module extends \yii\base\Module
echo '<div id="yii-debug-toolbar" data-url="' . $url . '" style="display:none"></div>'; echo '<div id="yii-debug-toolbar" data-url="' . $url . '" style="display:none"></div>';
/** @var View $view */ /** @var View $view */
$view = $event->sender; $view = $event->sender;
echo '<style>' . $view->renderFile(__DIR__ . '/views/default/toolbar.css') . '</style>'; echo '<style>' . $view->renderPhpFile(__DIR__ . '/views/default/toolbar.css') . '</style>';
echo '<script>' . $view->renderFile(__DIR__ . '/views/default/toolbar.js') . '</script>'; echo '<script>' . $view->renderPhpFile(__DIR__ . '/views/default/toolbar.js') . '</script>';
} }
protected function corePanels() protected function corePanels()
......
...@@ -60,7 +60,7 @@ EOD; ...@@ -60,7 +60,7 @@ EOD;
<table class="table table-condensed table-bordered table-striped table-hover" style="table-layout: fixed;"> <table class="table table-condensed table-bordered table-striped table-hover" style="table-layout: fixed;">
<thead> <thead>
<tr> <tr>
<th style="width: 80px;">Duration</th> <th style="width: 80px;">Time</th>
<th>Query</th> <th>Query</th>
</tr> </tr>
</thead> </thead>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment