URL
URL and Controller class
Fegg FW also adopted the segment-based-approach. Here is how the URL and Controller class relationship work.
http://example.com/class/function/param1/param2...
- Class of Controller
- Method of Controller class
- Arguments for Method
You can have a more flexible URL by setting up your URL structure in Routing file.
Example
URL
http://example.com/post/edit/1