Commit 1584e158 by Alexander Makarov

Updated custom debug panel example

parent f90a3699
...@@ -110,7 +110,7 @@ class ViewsPanel extends Panel ...@@ -110,7 +110,7 @@ class ViewsPanel extends Panel
{ {
parent::init(); parent::init();
Event::on(View::className(), View::EVENT_BEFORE_RENDER, function (ViewEvent $event) { Event::on(View::className(), View::EVENT_BEFORE_RENDER, function (ViewEvent $event) {
$this->_viewFiles[] = $event->viewFile; $this->_viewFiles[] = $event->sender->getViewFile();
}); });
} }
......
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