Skip to content

Commit 00f4738

Browse files
committed
Merge pull request #403 from cakephp/fix-view-class
Forcing the panel to use the default cake's View class
2 parents ca07485 + 10d9c44 commit 00f4738

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Controller/PanelsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function beforeFilter(Event $event)
5353
*/
5454
public function beforeRender(Event $event)
5555
{
56-
$this->viewBuilder()->layout('DebugKit.panel');
56+
$this->viewBuilder()->layout('DebugKit.panel')->className('View');
5757
}
5858

5959
/**

src/Controller/RequestsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function beforeFilter(Event $event)
4848
*/
4949
public function beforeRender(Event $event)
5050
{
51-
$this->viewBuilder()->layout('DebugKit.toolbar');
51+
$this->viewBuilder()->layout('DebugKit.toolbar')->className('View');
5252
}
5353

5454
/**

0 commit comments

Comments
 (0)