I have been working on PHP for the past 1 year, and I'm currently learning Rails.
On the rails: - Routing takes an incoming URL and decodes it into a set of parameters that Rails uses to send to the appropriate controller and action
for instance
rs.recognize_path "/blog/show/123"
{:controller=>"blog", :action=>"show", :id=>"123"}
I'm right?
We mention this (recorded) line of code on our .rb routes in the config directory to tell rails how to handle a request like "/ blog / show / 123" using this line of code.
map.connect "blog/show/:id", :controller => "blog", :action => "show", :id => /\d+/
Now in PHP, when we do something like this
www.example.com/profile.php?profile_id=2
How is the request sent to the requested page? So, I never wrote anything for routing in PHP, so how was this request processed by hss? How is routing done in PHP (what did I miss while learning / working in PHP)?
, , . , , - .