I have recently found and began playing around with MVC. I have a basic framework setup, the controller class, model class, an sql class, and so on. A basic app works ( well, I am just printing from the method so... ).
Anyways, the URL structure I was hoping to get "cleaner", as the current /controller/and/so/on/id/4 is not so great. Since I am new to MVC, I was wondering if you can rewrite or use PHP to rewrite these values so a URL of...
Could be turned into...
I wasn't quite sure how it would work, if it even could since the URL values are used to determine the methods called and so on.
I know Joomla does something similar, maybe very loosely based on MVC ( haven't checked out the new version ), but was wondering what you guys had to say on the subject?
Right now, I am also engaged in MVC development, you know well that index.php is the only entry point to the application, then what would be the exact problem in rewriting the URL as per your wish? But I didnt try the URL rewriting in MVC apps yet.
You have development your OWN framework right? But in my experience I am not sure that we can have strict MVC approach in PHP development. how about your framework ya?