klein / klein.php

A fast & flexible router
MIT License
2.66k stars 290 forks source link

Check if current route matches route string #312

Open imolorhe opened 8 years ago

imolorhe commented 8 years ago

Hi,

Is it possible to check if the current request route matches a route string in klein? I am trying to do a permission check based for each route the user accesses.

dhaya6027 commented 8 years ago

I m having the same need. is there a solution to this one

leicht-io commented 6 years ago

You might be able to use Klein->request()->pathname().