How to write simple url routing using front controller pattern ?
posted 2 years ago
I want to write simple url routing using front controller pattern for learning purpose but I don't know how to start.
I think I must use reflection to achieve general url routing.
How can I find associated command class with specific url using annotations for url mapping ?
Would you please give me some example code to do this ?
I google it a lot but I didn't find anything useful
Thanks a lot for your help.