From c89396578d9692b9d4f7a17d423df4c14ef20f11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Tue, 9 Feb 2016 16:32:37 +0100 Subject: [PATCH 1/2] Forcing the panel to use the default cake's View class When having an altered AppView class, the toolbar can break --- src/Controller/RequestsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/RequestsController.php b/src/Controller/RequestsController.php index 8f217f539..79a597481 100644 --- a/src/Controller/RequestsController.php +++ b/src/Controller/RequestsController.php @@ -48,7 +48,7 @@ public function beforeFilter(Event $event) */ public function beforeRender(Event $event) { - $this->viewBuilder()->layout('DebugKit.toolbar'); + $this->viewBuilder()->layout('DebugKit.toolbar')->className('View'); } /** From 10d9c447f9b9cdb49e0aa04f735592993aeafb86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Lorenzo=20Rodr=C3=ADguez?= Date: Tue, 9 Feb 2016 16:33:54 +0100 Subject: [PATCH 2/2] Also using the default View class for Panels --- src/Controller/PanelsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/PanelsController.php b/src/Controller/PanelsController.php index e0e7345d0..8718f13af 100644 --- a/src/Controller/PanelsController.php +++ b/src/Controller/PanelsController.php @@ -53,7 +53,7 @@ public function beforeFilter(Event $event) */ public function beforeRender(Event $event) { - $this->viewBuilder()->layout('DebugKit.panel'); + $this->viewBuilder()->layout('DebugKit.panel')->className('View'); } /**