File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717use Cake \Database \Driver \Sqlite ;
1818use Cake \Datasource \ConnectionManager ;
1919use Cake \Event \Event ;
20- use Cake \Network \Exception \NotFoundException ;
20+ use Cake \Http \Exception \NotFoundException ;
2121
2222/**
2323 * Dashboard and common DebugKit backend.
@@ -29,14 +29,16 @@ class DebugKitController extends Controller
2929 *
3030 * @param \Cake\Event\Event $event The event.
3131 * @return void
32- * @throws \Cake\Network \Exception\NotFoundException
32+ * @throws \Cake\Http \Exception\NotFoundException
3333 */
3434 public function beforeFilter (Event $ event )
3535 {
3636 // TODO add config override.
3737 if (!Configure::read ('debug ' )) {
38- throw new NotFoundException ();
38+ throw new NotFoundException (' Not available without debug mode on. ' );
3939 }
40+
41+ $ this ->viewBuilder ()->setLayout ('dashboard ' );
4042 }
4143
4244 /**
Original file line number Diff line number Diff line change 1+ <?php $ this ->extend ('toolbar ' ) ?>
2+
3+ <div style="height:calc(100vh);overflow-y:scroll">
4+ <?php if (empty ($ noHeader )) : ?>
5+ <h2 class="panel-title">
6+ <?= isset ($ title ) ? h ($ title ) : __d ('debug_kit ' , 'DebugKit Dashboard ' ) ?>
7+ </h2>
8+ <?php endif ?>
9+
10+ <div class="panel-content">
11+ <?= $ this ->fetch ('content ' ); ?>
12+ </div>
13+ </div>
You can’t perform that action at this time.
0 commit comments