Skip to content

Commit

Permalink
docs: add new Getting Routing Information & Accessing Active Filters …
Browse files Browse the repository at this point in the history
…for a Route
  • Loading branch information
datamweb committed Aug 19, 2024
1 parent b9a327d commit 919f0df
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions user_guide_src/source/incoming/routing/072.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

// Get the router instance.
/** @var \CodeIgniter\Router\Router $router */
$router = service('router');
$filters = $router->getFilters();

echo 'Active Filters for the Route: ' . implode(', ', $filters);

0 comments on commit 919f0df

Please sign in to comment.