One of these is request forwarding. Basically, I mean that I interpret URLs recursively. So, if I had this URL:
Code: Select all
http://domain.tld/user/profile/usernameCode: Select all
"/user/profile/username" sent to Front Controller
controller = null
action = "user"
"user" action forwards request to User Controller
"/profile/username" sent to User Controller
controller = "user"
action = "profile"
"profile" action forwards request to Profile Controller
"/username" sent to Profile Controller
controller = "profile"
action = "username"
Default action uses "username" to display profileCode: Select all
http://domain.tld/user/profile/username/commentsI'd just like to know how other people deal with this problem. Is it better to solve this problem in the URL itself, or handle request forwarding differently?