IanBrison / Bravel

My Original Framework
12 stars 0 forks source link

Map the parameters of the url to the controller #20

Closed IanBrison closed 5 years ago

IanBrison commented 5 years ago

when a url has a parameter like a user_id, we should map the value to a variable and pass it to the method of the action. don't just pass the whole parameters

/something/something/:id -> public function show($id) { }

IanBrison commented 5 years ago

now it's how I just wanted