-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Router parameter #1
Comments
It might be a year after the question, but it worth sharing the way I did it (using preg_match)
second : Router.php
third : in controller add third parameter to your method as array |
An update to the project was made by @thecodeholic. Check out #5 |
I built my own PHP MVC framework; inspired by this project. Thank you @thecodeholic |
Amazing @virtual-designer. |
Thanks sir! Here is my project link: https://github.com/onesoft-sudo/invention-project |
You got your first star from me. I will explore the project as soon as I have time. |
@thecodeholic Ok Zura. But you're a great man. You made my day :) |
I am trying to do that too. Its really cool to have such materials to work with |
Hey there,
user/update/1
orproduct/{:slug}
orcategory/{:slug}/{:id}
When we define a route in the form of, we cannot access the '1' or 'slug' parameter other than using the $ _GET global.
We send Request and Response classes as parameters to the controller. Likewise how can we send this '1' or 'slug' parameter?
The text was updated successfully, but these errors were encountered: