Skip to content

Can we use role filter for all methods of a class without creating route for each method? #328

Answered by MGatner
Hiruma-youichi asked this question in Q&A
Discussion options

You must be logged in to vote

There are many ways to consolidate routes. You should look into wildcards, auto-routing, and route groups. None of this is really about Myth:Auth though so you might do better on the CodeIgniter Support Forums.

https://codeigniter.com/user_guide/incoming/routing.html

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Hiruma-youichi
Comment options

Answer selected by Hiruma-youichi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants