Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tangix/ci45-nested-groups
https://github.com/tangix/ci45-nested-groups
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tangix/ci45-nested-groups
- Owner: tangix
- License: mit
- Created: 2024-06-18T08:21:35.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-18T09:13:54.000Z (7 months ago)
- Last Synced: 2025-01-04T01:02:14.121Z (25 days ago)
- Language: PHP
- Size: 78.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Routing issues with filters
Referencing https://codeigniter.com/user_guide/incoming/routing.html#nesting-groups and the code exmaple:
```php
group('admin', ['filter' => 'myfilter:config'], static function ($routes) {
$routes->get('/', 'Admin\Admin::index');$routes->group('users', ['filter' => 'myfilter:region'], static function ($routes) {
$routes->get('list', 'Admin\Users::list');
});
});
```Run this using spark
```bash
php spark serve --port 28080
```I cannot get this to work as expected when the name of the filter options are the same, [see](http://127.0.0.1:28080/notworking/users/list) on the `config` filter is executed.
If replaced with a second filter `myfilter2` it [works](http://127.0.0.1:28080/working/users/list)