File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ public function shutdown(EventInterface $event): void
4949 }
5050
5151 $ this ->_data = [
52+ 'params ' => $ request ->getAttribute ('params ' ),
5253 'attributes ' => $ attributes ,
5354 'query ' => Debugger::exportVarAsNodes ($ request ->getQueryParams (), $ maxDepth ),
5455 'data ' => Debugger::exportVarAsNodes ($ request ->getData (), $ maxDepth ),
Original file line number Diff line number Diff line change 2424 * @var \Cake\Error\Debug\NodeInterface $query
2525 * @var \Cake\Error\Debug\NodeInterface $cookie
2626 * @var string $matchedRoute
27+ * @var array $params
2728 */
2829
2930use Cake \Error \Debugger ;
4142 </p>
4243 <?php endif ; ?>
4344
45+ <h4>Route path</h4>
46+ <?php
47+ $ routePath = $ params ['controller ' ] . ':: ' . $ params ['action ' ];
48+ if (!empty ($ params ['prefix ' ])) {
49+ $ routePath = $ params ['prefix ' ] . '/ ' . $ routePath ;
50+ }
51+ if (!empty ($ params ['plugin ' ])) {
52+ $ routePath = $ params ['plugin ' ] . '. ' . $ routePath ;
53+ }
54+ ?>
55+ <div class="cake-debug">
56+ <code><?php echo h ($ routePath ); ?> </code>
57+ </div>
58+ <p>
59+ <i>[Plugin].[Prefix]/[Controller]::[action]</i>
60+ </p>
61+
4462 <h4>Attributes</h4>
4563 <?php
4664 if (empty ($ attributes )) :
Original file line number Diff line number Diff line change 4343define ('LOGS ' , TMP );
4444
4545require_once CORE_PATH . 'config/bootstrap.php ' ;
46+ require_once CAKE . 'functions.php ' ;
4647
4748date_default_timezone_set ('UTC ' );
4849mb_internal_encoding ('UTF-8 ' );
You can’t perform that action at this time.
0 commit comments