I've written my own MVC framework in PHP, which uses urls in the format of:
/controller/method/param1/param2/param...
I've made it so that "default" methods can be ignored (by default index()
), so this results in URLs like /controller//param1/param2/param...
. For example, a URL of: /view//panel-glide/3
will call index('panel-glide', 3)
in the view
controller.
This works fine and dandy, but I'm concerned that search engines or some older browsers might freak out when they see the double slashes, as I don't think I've actually seem them ever be used before.
Is anyone aware of any issues I might come across by using this?
$this->input->get('param
')` would returnvalue1
). I want to allow URI segments to be parsed as method parameters (like in CodeIgniter) for ease of use and nicer urls (like/blog/post/hello-world-foo-bar-baz
) – Kellam