Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CI URI accept dash in all segments. #53

Closed
bitbucket-import opened this issue Aug 19, 2011 · 1 comment
Closed

Make CI URI accept dash in all segments. #53

bitbucket-import opened this issue Aug 19, 2011 · 1 comment

Comments

@bitbucket-import
Copy link

Hi,

I have MY_Router extension, but i think it's good idea to implement it in CI.

My code:

{{{

!php

class MY_Router extends CI_Router
{
function _set_request($segments = array()) {
parent::set_request(str_replace('-', '', $segments));
}
}
}}}

@philsturgeon
Copy link
Contributor

Absolutely not, that is random and very ambiguous, but you can do that with routes or use the extended code you have there. That is the fun of people able to extend classes! :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants